package com.ys;

import com.alibaba.fastjson.JSONObject;
import com.ys.util.RandomUtil;
import com.ys.util.wanli.WanliUtils;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.regex.Matcher;
import java.util.regex.Pattern;


public class Demo1 {

    @Autowired
    private Demo demo;
    public static void main(String[] args) {
    	new Demo1().inquiryBeneficiaryTemplate();
    }

      /**
       * 集成商可使用此接口获取万里汇主账号和子账号的信息。
     */
    @Test
    public void inquirySubuser(){
        //获取主账号和子账号
        String content = "";

        JSONObject jsonObject = new JSONObject();
        //获取主账号和子账号s
        jsonObject.put("pageSize",50);
        jsonObject.put("pageNumber",1);
        content = JSONObject.toJSONString(jsonObject);

        String httpMethod = "POST";
        //没有子账号的主账号
//        String clientId = "3J5Y8Y382Y3K3105035";
        //主账号有子账号
        String clientId = "3J5Y8X6S2Y7X0Z04334";
        String uriWithQueryString = "/amsin/api/v1/business/user/inquirySubuser";
        String connectedCustomerId = "";
        String result = Demo.result(content, httpMethod, uriWithQueryString, clientId,connectedCustomerId);
        System.out.println("result=" + result);
        //第一页
        //result={"currentPageNumber":1,"primaryUserInformation":{"logonId":"86-18888880000","userId":"2120220018087007","userName":{"fullName":"**正"}},"result":{"resultCode":"SUCCESS","resultMessage":"success.","resultStatus":"S"},"totalCount":11,"totalPageNumber":2,"userInformations":[{"logonId":"86-18888880018","userId":"2120220021443809","userNickName":{"fullName":"18888880018"}},{"logonId":"86-18888880001","userId":"2120220018088262","userNickName":{"fullName":"自动化资金自动归集账号勿修改归集策略(昭轩)"}},{"logonId":"86-16695071266","userId":"2120220055393301","userNickName":{"fullName":"86-18346186034"}},{"logonId":"86-16336872582","userId":"2120220010355146","userNickName":{"fullName":"cnl0_test1"}},{"logonId":"852-17765806431","userId":"2120120010952278","userNickName":{"fullName":"add_sub112233"}},{"logonId":"852-15118880","userId":"2120220023208138","userNickName":{"fullName":"回归测试-0427-绑定需新增注册子账号"}},{"logonId":"136***@gmail.com","userId":"2192170037757261","userNickName":{"fullName":"13628770001@gmail.com"}},{"logonId":"127***@gmail.com","userId":"2192170039303316","userNickName":{"fullName":"12765947849@gmail.com"}},{"logonId":"189***@sitsukcorp.com","userId":"2192150000372280","userNickName":{"fullName":"邀请L3 UK子账号"}},{"logonId":"172***@gmail.com","userId":"2192170039703752","userNickName":{"fullName":"17205128257@gmail.com"}}]}
        //第二页
        //result = {"currentPageNumber":2,"primaryUserInformation":{"logonId":"86-18888880000","userId":"2120220018087007","userName":{"fullName":"**正"}},"result":{"resultCode":"SUCCESS","resultMessage":"success.","resultStatus":"S"},"totalCount":11,"totalPageNumber":2,"userInformations":[{"logonId":"86-18888880017","userId":"2120220019570865","userNickName":{"fullName":"Aa17-达达"}}]}
    }

    /**
     * 可调用inquiryBalance接口查询账户余额。
     */
    @Test
    public void inquiryBalance(){
        String content = "";
        String httpMethod = "POST";
        //没有子账号的主账号
        String clientId = "3J5Y8Y382Y3K3105035";
        //主账号有子账号
//        String clientId = "3J5Y8X6S2Y7X0Z04334";
        String uriWithQueryString = "/amsin/api/v1/business/account/inquiryBalance";
        String connectedCustomerId = "";
        String result = Demo.result(content, httpMethod, uriWithQueryString, clientId,connectedCustomerId);
        System.out.println("result=" + result);

        //没有子账号的主账号
        //result={"accountBalances":[{"accountNo":"212021301100034057629340071360","availableBalance":{"currency":"IDR","value":0},"balanceType":"NORMAL_BALANCE","currency":"IDR","frozenBalance":{"currency":"IDR","value":0},"totalBalance":{"currency":"IDR","value":0}},{"accountNo":"212021301100073030899190071203","availableBalance":{"currency":"CZK","value":12257635},"balanceType":"NORMAL_BALANCE","currency":"CZK","frozenBalance":{"currency":"CZK","value":0},"totalBalance":{"currency":"CZK","value":12257635}},{"accountNo":"212021301100032017775190071752","availableBalance":{"currency":"SEK","value":9998988208},"balanceType":"NORMAL_BALANCE","currency":"SEK","frozenBalance":{"currency":"SEK","value":35000},"totalBalance":{"currency":"SEK","value":9999023208}},{"accountNo":"212021301100048017747590071484","availableBalance":{"currency":"MXN","value":9998972812},"balanceType":"NORMAL_BALANCE","currency":"MXN","frozenBalance":{"currency":"MXN","value":35000},"totalBalance":{"currency":"MXN","value":9999007812}},{"accountNo":"212021301100065015615090071702","availableBalance":{"currency":"SGD","value":20025776},"balanceType":"NORMAL_BALANCE","currency":"SGD","frozenBalance":{"currency":"SGD","value":0},"totalBalance":{"currency":"SGD","value":20025776}},{"accountNo":"212021301100041015568250071985","availableBalance":{"currency":"PLN","value":9999399323},"balanceType":"NORMAL_BALANCE","currency":"PLN","frozenBalance":{"currency":"PLN","value":19752},"totalBalance":{"currency":"PLN","value":9999419075}},{"accountNo":"212021301100036015577920071458","availableBalance":{"currency":"MYR","value":8890008912},"balanceType":"NORMAL_BALANCE","currency":"MYR","frozenBalance":{"currency":"MYR","value":0},"totalBalance":{"currency":"MYR","value":8890008912}},{"accountNo":"212021301100076015229520071554","availableBalance":{"currency":"NZD","value":112486},"balanceType":"NORMAL_BALANCE","currency":"NZD","frozenBalance":{"currency":"NZD","value":0},"totalBalance":{"currency":"NZD","value":112486}},{"accountNo":"212021301100044011644180071036","availableBalance":{"currency":"AUD","value":999999192230769},"balanceType":"NORMAL_BALANCE","currency":"AUD","frozenBalance":{"currency":"AUD","value":0},"totalBalance":{"currency":"AUD","value":999999192230769}},{"accountNo":"212021301100051011173640071826","availableBalance":{"currency":"GBP","value":100221082704487},"balanceType":"NORMAL_BALANCE","currency":"GBP","frozenBalance":{"currency":"GBP","value":0},"totalBalance":{"currency":"GBP","value":100221082704515}},{"accountNo":"212021301100008009698490071124","availableBalance":{"currency":"CAD","value":2000186192435},"balanceType":"NORMAL_BALANCE","currency":"CAD","frozenBalance":{"currency":"CAD","value":0},"totalBalance":{"currency":"CAD","value":2000186192435}},{"accountNo":"212021301100068006674360071392","availableBalance":{"currency":"JPY","value":9999317310},"balanceType":"NORMAL_BALANCE","currency":"JPY","frozenBalance":{"currency":"JPY","value":5654},"totalBalance":{"currency":"JPY","value":9999322964}},{"accountNo":"212021301100067005797720071978","availableBalance":{"currency":"EUR","value":999919011156925},"balanceType":"NORMAL_BALANCE","currency":"EUR","frozenBalance":{"currency":"EUR","value":0},"totalBalance":{"currency":"EUR","value":999919011156925}},{"accountNo":"212021301100091005272320071156","availableBalance":{"currency":"CNH","value":2003261537},"balanceType":"NORMAL_BALANCE","currency":"CNH","frozenBalance":{"currency":"CNH","value":35000},"totalBalance":{"currency":"CNH","value":2003296537}},{"accountNo":"212021301100088005272310071344","availableBalance":{"currency":"HKD","value":1003002093723350},"balanceType":"NORMAL_BALANCE","currency":"HKD","frozenBalance":{"currency":"HKD","value":0},"totalBalance":{"currency":"HKD","value":1003002093723350}},{"accountNo":"212021301100096005263170071840","availableBalance":{"currency":"USD","value":2003092361569607},"balanceType":"NORMAL_BALANCE","currency":"USD","frozenBalance":{"currency":"USD","value":46300},"totalBalance":{"currency":"USD","value":2003092361816007}}],"responseId":"21b84f85171409853238525122836","result":{"resultCode":"SUCCESS","resultMessage":"success","resultStatus":"S"}}

        //主账号有子账号
        //result={"result":{"resultCode":"ACCOUNT_NOT_EXIST","resultMessage":"account query fail","resultStatus":"F"}}
    }


    /**
     * 集成商可调用此接口获取店铺信息以及店铺关联账号的信息。
     */
    @Test
    public void inquiryStore(){
        String content = "";

        JSONObject jsonObject = new JSONObject();
        jsonObject.put("pageSize",100);
        jsonObject.put("pageNumber",1);
        content = JSONObject.toJSONString(jsonObject);

        String httpMethod = "POST";
        //没有子账号的主账号
//        String clientId = "3J5Y8Y382Y3K3105035";
//        主账号有子账号
        String clientId = "5YBY722ZHDD405465";
        String uriWithQueryString = "/amsin/api/v1/business/store/inquiryStore";
        String connectedCustomerId = "2120120239008552";
        String result = Demo.result(content, httpMethod, uriWithQueryString, clientId,connectedCustomerId);
        System.out.println("result=" + result);

        //没有子账号的主账号
//        result={"currentPageNumber":3,"result":{"resultCode":"SUCCESS","resultMessage":"success.","resultStatus":"S"},"storeInformation":[{"accountInformation":[{"accountNo":"281024151910760005405154","accountStatus":"ACTIVE","accountType":"RECEIVE_ACCOUNT","currencyList":["USD"]}],"authorizedStatus":"NEVER_AUTHORIZED","marketplaceName":"Mercado Libre","storeName":"Mercado Libre_xuanluo_Mercado46580"},{"accountInformation":[{"accountNo":"281024151990162004787556","accountStatus":"ACTIVE","accountType":"RECEIVE_ACCOUNT","currencyList":["USD"]}],"authorizedStatus":"NEVER_AUTHORIZED","marketplaceName":"KSHER","storeName":"KSHER_Ksher"},{"accountInformation":[{"accountNo":"281024151922926004711725","accountStatus":"ACTIVE","accountType":"RECEIVE_ACCOUNT","currencyList":["USD"]}],"authorizedStatus":"NEVER_AUTHORIZED","marketplaceName":"Fyndiq","storeName":"Fyndiq_teststore"},{"accountInformation":[{"accountNo":"342900727","accountStatus":"ACTIVE","accountType":"VIRTUAL_ACCOUNT","bankAccountList":[{"accountCreationDate":"2023-08-18","bankAccountNo":"342900727","bankAddress":{"address1":"Champion Tower THREE GARDEN ROAD CENTRAL, HONG KONG","region":"HK"},"bankBIC":"CITIHKHX","bankCode":"006","bankName":"Citibank, N.A., Hong Kong Branch","branchCode":"391","currencyList":["USD"],"holderName":{}}],"currencyList":["USD"]}],"authorizedStatus":"NEVER_AUTHORIZED","marketplaceName":"PayPal","storeName":"11"},{"accountInformation":[{"accountNo":"2930242329","accountStatus":"ACTIVE","accountType":"VIRTUAL_ACCOUNT","bankAccountList":[{"accountCreationDate":"2023-08-14","bankAccountIBAN":"2930242329","bankAccountNo":"2930242329","bankAddress":{"address1":"21-24 Millbank Tower, London, SW1P 4QP, UK"},"bankBIC":"WFSTGB2L","bankName":"Barclays Bank (Dockland Branch)","currencyList":["GBP"],"holderName":{},"sortCode":"236825"}],"currencyList":["GBP"]}],"authorizedStatus":"NEVER_AUTHORIZED","marketplaceName":"Amazon Europe","storeName":"99"},{"accountInformation":[{"accountNo":"2930241652","accountStatus":"ACTIVE","accountType":"VIRTUAL_ACCOUNT","bankAccountList":[{"accountCreationDate":"2023-08-14","bankAccountIBAN":"2930241652","bankAccountNo":"2930241652","bankAddress":{"address1":"21-24 Millbank Tower, London, SW1P 4QP, UK"},"bankBIC":"WFSTGB2L","bankName":"Barclays Bank (Dockland Branch)","currencyList":["GBP"],"holderName":{},"sortCode":"236825"}],"currencyList":["GBP"]}],"authorizedStatus":"NEVER_AUTHORIZED","marketplaceName":"Amazon Europe","storeName":"99"},{"accountInformation":[{"accountNo":"5025384551","accountStatus":"ACTIVE","accountType":"VIRTUAL_ACCOUNT","bankAccountList":[{"accountCreationDate":"2023-08-14","bankAccountIBAN":"5025384551","bankAddress":{"address1":"200 Capital Dock 79 Sir John Rogersons Quay Dublin 2 D02 RK57","region":"IE"},"bankBIC":"CHASIE4L","bankName":"J.P. MORGAN BANK LUXEMBOURG S.A., DUBLIN BRANCH","currencyList":["EUR"],"holderName":{}}],"currencyList":["EUR"]}],"authorizedStatus":"NEVER_AUTHORIZED","marketplaceName":"Rakuten","storeName":"1"},{"accountInformation":[{"accountNo":"281024151934693003100674","accountStatus":"ACTIVE","accountType":"RECEIVE_ACCOUNT","currencyList":["CNY"]}],"authorizedStatus":"NEVER_AUTHORIZED","marketplaceName":"AliExpress","storeName":"AE_ZHOUZHI_CNY"},{"accountInformation":[{"accountNo":"281024151981020003100661","accountStatus":"ACTIVE","accountType":"RECEIVE_ACCOUNT","currencyList":["CNY"]}],"authorizedStatus":"NEVER_AUTHORIZED","marketplaceName":"AliExpress","storeName":"ZHOUZHI_CNY"},{"accountInformation":[{"accountNo":"281024151979959002806186","accountStatus":"ACTIVE","accountType":"RECEIVE_ACCOUNT","currencyList":["USD"]}],"authorizedStatus":"NEVER_AUTHORIZED","marketplaceName":"Mercado Libre","storeName":"Mercado Libre_TESTUSER1186962958"}],"totalCount":90,"totalPageNumber":9}


        //主账号有子账号
//        result={"currentPageNumber":1,"result":{"resultCode":"SUCCESS","resultMessage":"success.","resultStatus":"S"},"storeInformation":[{"accountInformation":[{"accountNo":"281024150928813032294069","accountStatus":"ACTIVE","accountType":"RECEIVE_ACCOUNT","currencyList":["USD"]}],"authorizedStatus":"NEVER_AUTHORIZED","marketplaceName":"Lazada","storeName":"store123"},{"accountInformation":[{"accountNo":"281024150970400032276530","accountStatus":"ACTIVE","accountType":"RECEIVE_ACCOUNT","currencyList":["CNY"]}],"authorizedStatus":"NEVER_AUTHORIZED","marketplaceName":"Lazada","storeName":"store123"},{"accountInformation":[{"accountNo":"20000011229497","accountStatus":"ACTIVE","accountType":"VIRTUAL_ACCOUNT","bankAccountList":[{"accountCreationDate":"2023-01-05","bankAccountNo":"20000011229497","bankAddress":{},"currencyList":["USD"],"holderName":{}}],"currencyList":["USD"]}],"authorizedStatus":"NEVER_AUTHORIZED","marketplaceName":"MONEY COLLECT","storeName":"In2U"},{"accountInformation":[{"accountNo":"DE02501108019080011234","accountStatus":"ACTIVE","accountType":"VIRTUAL_ACCOUNT","bankAccountList":[{"accountCreationDate":"2023-01-05","bankAccountNo":"DE02501108019080011234","bankAddress":{},"currencyList":["EUR"],"holderName":{}}],"currencyList":["EUR"]}],"authorizedStatus":"NEVER_AUTHORIZED","marketplaceName":"Rakuten","storeName":"For4"},{"accountInformation":[],"authorizedStatus":"NEVER_AUTHORIZED","marketplaceName":"Stripe","storeName":"for one"},{"accountInformation":[],"authorizedStatus":"NEVER_AUTHORIZED","marketplaceName":"Stripe","storeName":"for one"},{"accountInformation":[],"authorizedStatus":"NEVER_AUTHORIZED","marketplaceName":"Stripe","storeName":"forone"},{"accountInformation":[],"authorizedStatus":"NEVER_AUTHORIZED","marketplaceName":"Stripe","storeName":"forone"},{"accountInformation":[{"accountNo":"1623911270123","accountStatus":"ACTIVE","accountType":"VIRTUAL_ACCOUNT","bankAccountList":[{"accountCreationDate":"2022-12-12","bankAccountNo":"1623911270123","bankAccountType":"checking","bankAddress":{"address1":"Otemachi Park Building, 1-1 Otemachi 1-chome, Chiyoda-ku, Tokyo 100-8132"},"bankCode":"0401","bankName":"Citibank, N.A., Yamabuki Branch","branchCode":"802","currencyList":["JPY"],"holderName":{"fullName":"World First Japan K.K."}}],"currencyList":["JPY"]}],"authorizedStatus":"NEVER_AUTHORIZED","marketplaceName":"PayPal","storeName":"ZHOUZHIJPY"},{"accountInformation":[{"accountNo":"30000011172336","accountStatus":"ACTIVE","accountType":"VIRTUAL_ACCOUNT","bankAccountList":[{"accountCreationDate":"2022-09-27","bankAccountNo":"30000011172336","bankAddress":{},"currencyList":["USD"],"holderName":{}}],"currencyList":["USD"]}],"authorizedStatus":"NEVER_AUTHORIZED","marketplaceName":"Shopline","storeName":"洲之测试店铺开通虾皮"}],"totalCount":15,"totalPageNumber":2}

    }


    /**
     * 集成商可调用此接口获取交易账单。
     */
    @Test
    public void inquiryStatementList(){
        String content = "";
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("startTime","2024-04-03T10:00:00+08:00");
        jsonObject.put("endTime","2024-04-04T13:59:59+08:00");
        jsonObject.put("pageSize",10);
        jsonObject.put("pageNumber",1);
        content = JSONObject.toJSONString(jsonObject);

        String httpMethod = "POST";
        //没有子账号的主账号
        String clientId = "3J5Y8Y382Y3K3105035";
//        主账号有子账号
//        String clientId = "3J5Y8X6S2Y7X0Z04334";
        String uriWithQueryString = "/amsin/api/v1/business/account/inquiryStatementList";
        String connectedCustomerId = "";
        String result = Demo.result(content, httpMethod, uriWithQueryString, clientId,connectedCustomerId);
        System.out.println("result=" + result);

        //没有子账号的主账号
//        result={"currentPageNumber":1,"responseId":"21b1d247171411485427565502835","result":{"resultCode":"SUCCESS","resultMessage":"success","resultStatus":"S"},"statementList":[{"accountBalance":{"currency":"USD","value":3163161915826},"balanceType":"NORMAL_BALANCE","extTransactionId":"outBiz_936921773443169829702665","feeAmount":{"currency":"USD","value":40},"fundMoveDetail":{"beneficiaryAccountNo":"622202*********9098","beneficiaryAccountType":"BANK_CARD","beneficiaryBankCountry":"CN","beneficiaryBankName":"中国工商银行","beneficiaryName":"guanju test bankAccountLocalName","description":"Refunded payment fee-2024040419121000110800001323014","payerAccountNo":"212021301100044000156948041840","payerAccountType":"WORLDFIRST","remarks":"guanju guanju guanju!"},"originalTransactionAmount":{"currency":"USD","value":20000},"refundForeignExchangeQuote":{"quotePrice":"7.26710696","transferFromCurrency":"USD","transferToCurrency":"CNH"},"transactionAmount":{"currency":"USD","value":40},"transactionId":"2024040419121000110800001323014","transactionStatus":"REFUNDED","transactionTime":"2024-04-04T04:06:49Z","transactionType":"CHARGE_REFUND"},{"accountBalance":{"currency":"USD","value":3163161915826},"balanceType":"NORMAL_BALANCE","extTransactionId":"outBiz_936921773443169829702665","feeAmount":{"currency":"USD","value":40},"fundMoveDetail":{"beneficiaryAccountNo":"622202*********9098","beneficiaryAccountType":"BANK_CARD","beneficiaryBankCountry":"CN","beneficiaryBankName":"中国工商银行","beneficiaryName":"guanju test bankAccountLocalName","description":"Transfer refund-2024040419121000110800001323014","payerAccountNo":"212021301100044000156948041840","payerAccountType":"WORLDFIRST","remarks":"guanju guanju guanju!"},"originalTransactionAmount":{"currency":"USD","value":20000},"refundForeignExchangeQuote":{"quotePrice":"7.26710696","transferFromCurrency":"USD","transferToCurrency":"CNH"},"transactionAmount":{"currency":"USD","value":19960},"transactionId":"2024040419121000110800001323014","transactionStatus":"REFUNDED","transactionTime":"2024-04-04T04:06:49Z","transactionType":"TRANSFER_REFUND"},{"accountBalance":{"currency":"USD","value":3163161915826},"balanceType":"NORMAL_BALANCE","extTransactionId":"outBiz_936921773443169829702665","feeAmount":{"currency":"USD","value":40},"foreignExchangeQuote":{"quotePrice":"7.26710696","transferFromCurrency":"USD","transferToCurrency":"CNY"},"fundMoveDetail":{"beneficiaryAccountNo":"622202*********9098","beneficiaryAccountType":"BANK_CARD","beneficiaryBankCountry":"CN","beneficiaryBankName":"中国工商银行","beneficiaryName":"guanju test bankAccountLocalName","description":"Payment fee-guanju test bankAccountLocalName(622202*********9098)","payerAccountNo":"212021301100044000156948041840","payerAccountType":"WORLDFIRST","remarks":"guanju guanju guanju!"},"netAmount":{"currency":"USD","value":19960},"originalTransactionAmount":{"currency":"USD","value":20000},"receiveAmount":{"currency":"CNY","value":145051},"transactionAmount":{"currency":"USD","value":-40},"transactionId":"2024040419121000110800001323014","transactionStatus":"FAIL","transactionTime":"2024-04-04T04:05:27Z","transactionType":"CHARGE"},{"accountBalance":{"currency":"USD","value":3163161915826},"balanceType":"NORMAL_BALANCE","extTransactionId":"outBiz_936921773443169829702665","feeAmount":{"currency":"USD","value":40},"foreignExchangeQuote":{"quotePrice":"7.26710696","transferFromCurrency":"USD","transferToCurrency":"CNY"},"fundMoveDetail":{"beneficiaryAccountNo":"622202*********9098","beneficiaryAccountType":"BANK_CARD","beneficiaryBankCountry":"CN","beneficiaryBankName":"中国工商银行","beneficiaryName":"guanju test bankAccountLocalName","description":"Transfer-guanju test bankAccountLocalName(622202*********9098)","payerAccountNo":"212021301100044000156948041840","payerAccountType":"WORLDFIRST","remarks":"guanju guanju guanju!"},"netAmount":{"currency":"USD","value":19960},"originalTransactionAmount":{"currency":"USD","value":20000},"receiveAmount":{"currency":"CNY","value":145051},"transactionAmount":{"currency":"USD","value":-19960},"transactionId":"2024040419121000110800001323014","transactionStatus":"PROCESSING","transactionTime":"2024-04-04T04:05:27Z","transactionType":"TRANSFER"},{"accountBalance":{"currency":"USD","value":3163161915826},"balanceType":"NORMAL_BALANCE","extTransactionId":"outBiz_491097479033395398502484","feeAmount":{"currency":"USD","value":1},"foreignExchangeQuote":{"quotePrice":"7.26710696","transferFromCurrency":"USD","transferToCurrency":"CNY"},"fundMoveDetail":{"beneficiaryAccountNo":"622202*********9098","beneficiaryAccountType":"BANK_CARD","beneficiaryBankCountry":"CN","beneficiaryBankName":"中国工商银行","beneficiaryName":"guanju test bankAccountLocalName","description":"Payment fee-guanju test bankAccountLocalName(622202*********9098)","payerAccountNo":"212021301100044000156948041840","payerAccountType":"WORLDFIRST","remarks":"guanju guanju guanju!"},"netAmount":{"currency":"USD","value":275},"originalTransactionAmount":{"currency":"USD","value":276},"receiveAmount":{"currency":"CNY","value":2000},"transactionAmount":{"currency":"USD","value":-1},"transactionId":"2024040419121000110800001324759","transactionStatus":"SUCCESS","transactionTime":"2024-04-04T03:42:16Z","transactionType":"CHARGE"},{"accountBalance":{"currency":"USD","value":3163161915827},"balanceType":"NORMAL_BALANCE","extTransactionId":"outBiz_491097479033395398502484","feeAmount":{"currency":"USD","value":1},"foreignExchangeQuote":{"quotePrice":"7.26710696","transferFromCurrency":"USD","transferToCurrency":"CNY"},"fundMoveDetail":{"beneficiaryAccountNo":"622202*********9098","beneficiaryAccountType":"BANK_CARD","beneficiaryBankCountry":"CN","beneficiaryBankName":"中国工商银行","beneficiaryName":"guanju test bankAccountLocalName","description":"Transfer-guanju test bankAccountLocalName(622202*********9098)","payerAccountNo":"212021301100044000156948041840","payerAccountType":"WORLDFIRST","remarks":"guanju guanju guanju!"},"netAmount":{"currency":"USD","value":275},"originalTransactionAmount":{"currency":"USD","value":276},"receiveAmount":{"currency":"CNY","value":2000},"transactionAmount":{"currency":"USD","value":-275},"transactionId":"2024040419121000110800001324759","transactionStatus":"SUCCESS","transactionTime":"2024-04-04T03:42:16Z","transactionType":"TRANSFER"},{"accountBalance":{"currency":"CNH","value":1438623996},"balanceType":"NORMAL_BALANCE","extTransactionId":"outBiz_283394599608264772124750","feeAmount":{"currency":"CNH","value":20},"foreignExchangeQuote":{"quotePrice":"1","transferFromCurrency":"CNH","transferToCurrency":"CNY"},"fundMoveDetail":{"beneficiaryAccountNo":"622202*********9098","beneficiaryAccountType":"BANK_CARD","beneficiaryBankCountry":"CN","beneficiaryBankName":"中国工商银行","beneficiaryName":"guanju test bankAccountLocalName","description":"Payment fee-guanju test bankAccountLocalName(622202*********9098)","payerAccountNo":"212021301100092000156978041156","payerAccountType":"WORLDFIRST","remarks":"guanju guanju guanju!"},"netAmount":{"currency":"CNH","value":9980},"originalTransactionAmount":{"currency":"CNH","value":10000},"receiveAmount":{"currency":"CNY","value":9980},"transactionAmount":{"currency":"CNH","value":-20},"transactionId":"2024040419121000110800001326750","transactionStatus":"SUCCESS","transactionTime":"2024-04-04T03:36:02Z","transactionType":"CHARGE"},{"accountBalance":{"currency":"CNH","value":1438624016},"balanceType":"NORMAL_BALANCE","extTransactionId":"outBiz_283394599608264772124750","feeAmount":{"currency":"CNH","value":20},"foreignExchangeQuote":{"quotePrice":"1","transferFromCurrency":"CNH","transferToCurrency":"CNY"},"fundMoveDetail":{"beneficiaryAccountNo":"622202*********9098","beneficiaryAccountType":"BANK_CARD","beneficiaryBankCountry":"CN","beneficiaryBankName":"中国工商银行","beneficiaryName":"guanju test bankAccountLocalName","description":"Transfer-guanju test bankAccountLocalName(622202*********9098)","payerAccountNo":"212021301100092000156978041156","payerAccountType":"WORLDFIRST","remarks":"guanju guanju guanju!"},"netAmount":{"currency":"CNH","value":9980},"originalTransactionAmount":{"currency":"CNH","value":10000},"receiveAmount":{"currency":"CNY","value":9980},"transactionAmount":{"currency":"CNH","value":-9980},"transactionId":"2024040419121000110800001326750","transactionStatus":"SUCCESS","transactionTime":"2024-04-04T03:36:02Z","transactionType":"TRANSFER"},{"accountBalance":{"currency":"USD","value":3163161916102},"balanceType":"NORMAL_BALANCE","extTransactionId":"outBiz_980528069620510521068174","feeAmount":{"currency":"USD","value":40},"fundMoveDetail":{"beneficiaryAccountNo":"622202*********9098","beneficiaryAccountType":"BANK_CARD","beneficiaryBankCountry":"CN","beneficiaryBankName":"中国工商银行","beneficiaryName":"guanju test bankAccountLocalName","description":"Refunded payment fee-2024040419121000110800001323012","payerAccountNo":"212021301100044000156948041840","payerAccountType":"WORLDFIRST","remarks":"guanju guanju guanju!"},"originalTransactionAmount":{"currency":"USD","value":20000},"refundForeignExchangeQuote":{"quotePrice":"7.26710696","transferFromCurrency":"USD","transferToCurrency":"CNH"},"transactionAmount":{"currency":"USD","value":40},"transactionId":"2024040419121000110800001323012","transactionStatus":"REFUNDED","transactionTime":"2024-04-04T03:34:12Z","transactionType":"CHARGE_REFUND"},{"accountBalance":{"currency":"USD","value":3163161916102},"balanceType":"NORMAL_BALANCE","extTransactionId":"outBiz_980528069620510521068174","feeAmount":{"currency":"USD","value":40},"fundMoveDetail":{"beneficiaryAccountNo":"622202*********9098","beneficiaryAccountType":"BANK_CARD","beneficiaryBankCountry":"CN","beneficiaryBankName":"中国工商银行","beneficiaryName":"guanju test bankAccountLocalName","description":"Transfer refund-2024040419121000110800001323012","payerAccountNo":"212021301100044000156948041840","payerAccountType":"WORLDFIRST","remarks":"guanju guanju guanju!"},"originalTransactionAmount":{"currency":"USD","value":20000},"refundForeignExchangeQuote":{"quotePrice":"7.26710696","transferFromCurrency":"USD","transferToCurrency":"CNH"},"transactionAmount":{"currency":"USD","value":19960},"transactionId":"2024040419121000110800001323012","transactionStatus":"REFUNDED","transactionTime":"2024-04-04T03:34:12Z","transactionType":"TRANSFER_REFUND"}],"totalCount":235,"totalPageNumber":24}


        //主账号有子账号
//        result={"currentPageNumber":1,"responseId":"21b1d247171411144937143222835","result":{"resultCode":"SUCCESS","resultMessage":"success","resultStatus":"S"},"statementList":[{"accountBalance":{"currency":"EUR","value":999999426488},"balanceType":"SAME_NAME_TOP_UP_BALANCE ","feeAmount":{"currency":"USD","value":0},"foreignExchangeQuote":{"quotePrice":"0.91627114","transferFromCurrency":"USD","transferToCurrency":"EUR"},"fundMoveDetail":{"beneficiaryAccountNo":"212011301100034016711970071978","beneficiaryAccountType":"SAME_NAME_TOPUP_BALANCE","beneficiaryBankCountry":"","description":"Conversion-USD -> EUR","payerAccountNo":"212021301100048033438600071840","payerAccountType":"SAME_NAME_TOPUP_BALANCE"},"originalTransactionAmount":{"currency":"USD","value":100},"transactionAmount":{"currency":"EUR","value":92},"transactionId":"2024040319028023400000010799877","transactionStatus":"SUCCESS","transactionTime":"2024-04-03T20:29:35Z","transactionType":"CONVERSION"},{"accountBalance":{"currency":"USD","value":999997446982},"balanceType":"SAME_NAME_TOP_UP_BALANCE ","feeAmount":{"currency":"USD","value":0},"foreignExchangeQuote":{"quotePrice":"0.91627114","transferFromCurrency":"USD","transferToCurrency":"EUR"},"fundMoveDetail":{"beneficiaryAccountNo":"212011301100034016711970071978","beneficiaryAccountType":"SAME_NAME_TOPUP_BALANCE","beneficiaryBankCountry":"","description":"Conversion-USD -> EUR","payerAccountNo":"212021301100048033438600071840","payerAccountType":"SAME_NAME_TOPUP_BALANCE"},"originalTransactionAmount":{"currency":"USD","value":100},"transactionAmount":{"currency":"USD","value":-100},"transactionId":"2024040319028023400000010799877","transactionStatus":"SUCCESS","transactionTime":"2024-04-03T20:29:35Z","transactionType":"CONVERSION"},{"accountBalance":{"currency":"USD","value":999997447082},"balanceType":"SAME_NAME_TOP_UP_BALANCE ","feeAmount":{"currency":"EUR","value":0},"foreignExchangeQuote":{"quotePrice":"1.08998","transferFromCurrency":"EUR","transferToCurrency":"USD"},"fundMoveDetail":{"beneficiaryAccountNo":"212021301100048033438600071840","beneficiaryAccountType":"SAME_NAME_TOPUP_BALANCE","beneficiaryBankCountry":"","description":"Conversion-EUR -> USD","payerAccountNo":"212011301100034016711970071978","payerAccountType":"SAME_NAME_TOPUP_BALANCE"},"originalTransactionAmount":{"currency":"EUR","value":100},"transactionAmount":{"currency":"USD","value":109},"transactionId":"2024040319028023400000010801135","transactionStatus":"SUCCESS","transactionTime":"2024-04-03T20:11:56Z","transactionType":"CONVERSION"},{"accountBalance":{"currency":"EUR","value":999999426396},"balanceType":"SAME_NAME_TOP_UP_BALANCE ","feeAmount":{"currency":"EUR","value":0},"foreignExchangeQuote":{"quotePrice":"1.08998","transferFromCurrency":"EUR","transferToCurrency":"USD"},"fundMoveDetail":{"beneficiaryAccountNo":"212021301100048033438600071840","beneficiaryAccountType":"SAME_NAME_TOPUP_BALANCE","beneficiaryBankCountry":"","description":"Conversion-EUR -> USD","payerAccountNo":"212011301100034016711970071978","payerAccountType":"SAME_NAME_TOPUP_BALANCE"},"originalTransactionAmount":{"currency":"EUR","value":100},"transactionAmount":{"currency":"EUR","value":-100},"transactionId":"2024040319028023400000010801135","transactionStatus":"SUCCESS","transactionTime":"2024-04-03T20:11:56Z","transactionType":"CONVERSION"},{"accountBalance":{"currency":"CNH","value":1000000967879},"balanceType":"SAME_NAME_TOP_UP_BALANCE ","feeAmount":{"currency":"EUR","value":0},"foreignExchangeQuote":{"quotePrice":"7.53424","transferFromCurrency":"EUR","transferToCurrency":"CNH"},"fundMoveDetail":{"beneficiaryAccountNo":"212021301100009033459560071156","beneficiaryAccountType":"SAME_NAME_TOPUP_BALANCE","beneficiaryBankCountry":"","description":"Conversion-EUR -> CNH","payerAccountNo":"212011301100034016711970071978","payerAccountType":"SAME_NAME_TOPUP_BALANCE"},"originalTransactionAmount":{"currency":"EUR","value":100},"transactionAmount":{"currency":"CNH","value":753},"transactionId":"2024040319028023400000010781070","transactionStatus":"SUCCESS","transactionTime":"2024-04-03T20:10:32Z","transactionType":"CONVERSION"},{"accountBalance":{"currency":"EUR","value":999999426496},"balanceType":"SAME_NAME_TOP_UP_BALANCE ","feeAmount":{"currency":"EUR","value":0},"foreignExchangeQuote":{"quotePrice":"7.53424","transferFromCurrency":"EUR","transferToCurrency":"CNH"},"fundMoveDetail":{"beneficiaryAccountNo":"212021301100009033459560071156","beneficiaryAccountType":"SAME_NAME_TOPUP_BALANCE","beneficiaryBankCountry":"","description":"Conversion-EUR -> CNH","payerAccountNo":"212011301100034016711970071978","payerAccountType":"SAME_NAME_TOPUP_BALANCE"},"originalTransactionAmount":{"currency":"EUR","value":100},"transactionAmount":{"currency":"EUR","value":-100},"transactionId":"2024040319028023400000010781070","transactionStatus":"SUCCESS","transactionTime":"2024-04-03T20:10:32Z","transactionType":"CONVERSION"},{"accountBalance":{"currency":"EUR","value":999999426596},"balanceType":"SAME_NAME_TOP_UP_BALANCE ","feeAmount":{"currency":"USD","value":0},"foreignExchangeQuote":{"quotePrice":"0.91627114","transferFromCurrency":"USD","transferToCurrency":"EUR"},"fundMoveDetail":{"beneficiaryAccountNo":"212011301100034016711970071978","beneficiaryAccountType":"SAME_NAME_TOPUP_BALANCE","beneficiaryBankCountry":"","description":"Conversion-USD -> EUR","payerAccountNo":"212021301100048033438600071840","payerAccountType":"SAME_NAME_TOPUP_BALANCE"},"originalTransactionAmount":{"currency":"USD","value":100},"transactionAmount":{"currency":"EUR","value":92},"transactionId":"2024040319028023400000010780068","transactionStatus":"SUCCESS","transactionTime":"2024-04-03T20:09:11Z","transactionType":"CONVERSION"},{"accountBalance":{"currency":"USD","value":999997446973},"balanceType":"SAME_NAME_TOP_UP_BALANCE ","feeAmount":{"currency":"USD","value":0},"foreignExchangeQuote":{"quotePrice":"0.91627114","transferFromCurrency":"USD","transferToCurrency":"EUR"},"fundMoveDetail":{"beneficiaryAccountNo":"212011301100034016711970071978","beneficiaryAccountType":"SAME_NAME_TOPUP_BALANCE","beneficiaryBankCountry":"","description":"Conversion-USD -> EUR","payerAccountNo":"212021301100048033438600071840","payerAccountType":"SAME_NAME_TOPUP_BALANCE"},"originalTransactionAmount":{"currency":"USD","value":100},"transactionAmount":{"currency":"USD","value":-100},"transactionId":"2024040319028023400000010780068","transactionStatus":"SUCCESS","transactionTime":"2024-04-03T20:09:11Z","transactionType":"CONVERSION"},{"accountBalance":{"currency":"USD","value":999997447073},"balanceType":"SAME_NAME_TOP_UP_BALANCE ","feeAmount":{"currency":"EUR","value":0},"foreignExchangeQuote":{"quotePrice":"1.08998","transferFromCurrency":"EUR","transferToCurrency":"USD"},"fundMoveDetail":{"beneficiaryAccountNo":"212021301100048033438600071840","beneficiaryAccountType":"SAME_NAME_TOPUP_BALANCE","beneficiaryBankCountry":"","description":"Conversion-EUR -> USD","payerAccountNo":"212011301100034016711970071978","payerAccountType":"SAME_NAME_TOPUP_BALANCE"},"originalTransactionAmount":{"currency":"EUR","value":100},"transactionAmount":{"currency":"USD","value":109},"transactionId":"2024040319028023400000010790843","transactionStatus":"SUCCESS","transactionTime":"2024-04-03T13:25:28Z","transactionType":"CONVERSION"},{"accountBalance":{"currency":"EUR","value":999999426504},"balanceType":"SAME_NAME_TOP_UP_BALANCE ","feeAmount":{"currency":"EUR","value":0},"foreignExchangeQuote":{"quotePrice":"1.08998","transferFromCurrency":"EUR","transferToCurrency":"USD"},"fundMoveDetail":{"beneficiaryAccountNo":"212021301100048033438600071840","beneficiaryAccountType":"SAME_NAME_TOPUP_BALANCE","beneficiaryBankCountry":"","description":"Conversion-EUR -> USD","payerAccountNo":"212011301100034016711970071978","payerAccountType":"SAME_NAME_TOPUP_BALANCE"},"originalTransactionAmount":{"currency":"EUR","value":100},"transactionAmount":{"currency":"EUR","value":-100},"transactionId":"2024040319028023400000010790843","transactionStatus":"SUCCESS","transactionTime":"2024-04-03T13:25:28Z","transactionType":"CONVERSION"}],"totalCount":18,"totalPageNumber":2}
//        result={"currentPageNumber":1,"responseId":"21b1d247171411460417663382835","result":{"resultCode":"SUCCESS","resultMessage":"success","resultStatus":"S"},"statementList":[{"accountBalance":{"currency":"EUR","value":999999426488},"balanceType":"SAME_NAME_TOP_UP_BALANCE ","feeAmount":{"currency":"USD","value":0},"foreignExchangeQuote":{"quotePrice":"0.91627114","transferFromCurrency":"USD","transferToCurrency":"EUR"},"fundMoveDetail":{"beneficiaryAccountNo":"212011301100034016711970071978","beneficiaryAccountType":"SAME_NAME_TOPUP_BALANCE","beneficiaryBankCountry":"","description":"Conversion-USD -> EUR","payerAccountNo":"212021301100048033438600071840","payerAccountType":"SAME_NAME_TOPUP_BALANCE"},"originalTransactionAmount":{"currency":"USD","value":100},"transactionAmount":{"currency":"EUR","value":92},"transactionId":"2024040319028023400000010799877","transactionStatus":"SUCCESS","transactionTime":"2024-04-03T20:29:35Z","transactionType":"CONVERSION"},{"accountBalance":{"currency":"USD","value":999997446982},"balanceType":"SAME_NAME_TOP_UP_BALANCE ","feeAmount":{"currency":"USD","value":0},"foreignExchangeQuote":{"quotePrice":"0.91627114","transferFromCurrency":"USD","transferToCurrency":"EUR"},"fundMoveDetail":{"beneficiaryAccountNo":"212011301100034016711970071978","beneficiaryAccountType":"SAME_NAME_TOPUP_BALANCE","beneficiaryBankCountry":"","description":"Conversion-USD -> EUR","payerAccountNo":"212021301100048033438600071840","payerAccountType":"SAME_NAME_TOPUP_BALANCE"},"originalTransactionAmount":{"currency":"USD","value":100},"transactionAmount":{"currency":"USD","value":-100},"transactionId":"2024040319028023400000010799877","transactionStatus":"SUCCESS","transactionTime":"2024-04-03T20:29:35Z","transactionType":"CONVERSION"},{"accountBalance":{"currency":"USD","value":999997447082},"balanceType":"SAME_NAME_TOP_UP_BALANCE ","feeAmount":{"currency":"EUR","value":0},"foreignExchangeQuote":{"quotePrice":"1.08998","transferFromCurrency":"EUR","transferToCurrency":"USD"},"fundMoveDetail":{"beneficiaryAccountNo":"212021301100048033438600071840","beneficiaryAccountType":"SAME_NAME_TOPUP_BALANCE","beneficiaryBankCountry":"","description":"Conversion-EUR -> USD","payerAccountNo":"212011301100034016711970071978","payerAccountType":"SAME_NAME_TOPUP_BALANCE"},"originalTransactionAmount":{"currency":"EUR","value":100},"transactionAmount":{"currency":"USD","value":109},"transactionId":"2024040319028023400000010801135","transactionStatus":"SUCCESS","transactionTime":"2024-04-03T20:11:56Z","transactionType":"CONVERSION"},{"accountBalance":{"currency":"EUR","value":999999426396},"balanceType":"SAME_NAME_TOP_UP_BALANCE ","feeAmount":{"currency":"EUR","value":0},"foreignExchangeQuote":{"quotePrice":"1.08998","transferFromCurrency":"EUR","transferToCurrency":"USD"},"fundMoveDetail":{"beneficiaryAccountNo":"212021301100048033438600071840","beneficiaryAccountType":"SAME_NAME_TOPUP_BALANCE","beneficiaryBankCountry":"","description":"Conversion-EUR -> USD","payerAccountNo":"212011301100034016711970071978","payerAccountType":"SAME_NAME_TOPUP_BALANCE"},"originalTransactionAmount":{"currency":"EUR","value":100},"transactionAmount":{"currency":"EUR","value":-100},"transactionId":"2024040319028023400000010801135","transactionStatus":"SUCCESS","transactionTime":"2024-04-03T20:11:56Z","transactionType":"CONVERSION"},{"accountBalance":{"currency":"CNH","value":1000000967879},"balanceType":"SAME_NAME_TOP_UP_BALANCE ","feeAmount":{"currency":"EUR","value":0},"foreignExchangeQuote":{"quotePrice":"7.53424","transferFromCurrency":"EUR","transferToCurrency":"CNH"},"fundMoveDetail":{"beneficiaryAccountNo":"212021301100009033459560071156","beneficiaryAccountType":"SAME_NAME_TOPUP_BALANCE","beneficiaryBankCountry":"","description":"Conversion-EUR -> CNH","payerAccountNo":"212011301100034016711970071978","payerAccountType":"SAME_NAME_TOPUP_BALANCE"},"originalTransactionAmount":{"currency":"EUR","value":100},"transactionAmount":{"currency":"CNH","value":753},"transactionId":"2024040319028023400000010781070","transactionStatus":"SUCCESS","transactionTime":"2024-04-03T20:10:32Z","transactionType":"CONVERSION"},{"accountBalance":{"currency":"EUR","value":999999426496},"balanceType":"SAME_NAME_TOP_UP_BALANCE ","feeAmount":{"currency":"EUR","value":0},"foreignExchangeQuote":{"quotePrice":"7.53424","transferFromCurrency":"EUR","transferToCurrency":"CNH"},"fundMoveDetail":{"beneficiaryAccountNo":"212021301100009033459560071156","beneficiaryAccountType":"SAME_NAME_TOPUP_BALANCE","beneficiaryBankCountry":"","description":"Conversion-EUR -> CNH","payerAccountNo":"212011301100034016711970071978","payerAccountType":"SAME_NAME_TOPUP_BALANCE"},"originalTransactionAmount":{"currency":"EUR","value":100},"transactionAmount":{"currency":"EUR","value":-100},"transactionId":"2024040319028023400000010781070","transactionStatus":"SUCCESS","transactionTime":"2024-04-03T20:10:32Z","transactionType":"CONVERSION"},{"accountBalance":{"currency":"EUR","value":999999426596},"balanceType":"SAME_NAME_TOP_UP_BALANCE ","feeAmount":{"currency":"USD","value":0},"foreignExchangeQuote":{"quotePrice":"0.91627114","transferFromCurrency":"USD","transferToCurrency":"EUR"},"fundMoveDetail":{"beneficiaryAccountNo":"212011301100034016711970071978","beneficiaryAccountType":"SAME_NAME_TOPUP_BALANCE","beneficiaryBankCountry":"","description":"Conversion-USD -> EUR","payerAccountNo":"212021301100048033438600071840","payerAccountType":"SAME_NAME_TOPUP_BALANCE"},"originalTransactionAmount":{"currency":"USD","value":100},"transactionAmount":{"currency":"EUR","value":92},"transactionId":"2024040319028023400000010780068","transactionStatus":"SUCCESS","transactionTime":"2024-04-03T20:09:11Z","transactionType":"CONVERSION"},{"accountBalance":{"currency":"USD","value":999997446973},"balanceType":"SAME_NAME_TOP_UP_BALANCE ","feeAmount":{"currency":"USD","value":0},"foreignExchangeQuote":{"quotePrice":"0.91627114","transferFromCurrency":"USD","transferToCurrency":"EUR"},"fundMoveDetail":{"beneficiaryAccountNo":"212011301100034016711970071978","beneficiaryAccountType":"SAME_NAME_TOPUP_BALANCE","beneficiaryBankCountry":"","description":"Conversion-USD -> EUR","payerAccountNo":"212021301100048033438600071840","payerAccountType":"SAME_NAME_TOPUP_BALANCE"},"originalTransactionAmount":{"currency":"USD","value":100},"transactionAmount":{"currency":"USD","value":-100},"transactionId":"2024040319028023400000010780068","transactionStatus":"SUCCESS","transactionTime":"2024-04-03T20:09:11Z","transactionType":"CONVERSION"},{"accountBalance":{"currency":"USD","value":999997447073},"balanceType":"SAME_NAME_TOP_UP_BALANCE ","feeAmount":{"currency":"EUR","value":0},"foreignExchangeQuote":{"quotePrice":"1.08998","transferFromCurrency":"EUR","transferToCurrency":"USD"},"fundMoveDetail":{"beneficiaryAccountNo":"212021301100048033438600071840","beneficiaryAccountType":"SAME_NAME_TOPUP_BALANCE","beneficiaryBankCountry":"","description":"Conversion-EUR -> USD","payerAccountNo":"212011301100034016711970071978","payerAccountType":"SAME_NAME_TOPUP_BALANCE"},"originalTransactionAmount":{"currency":"EUR","value":100},"transactionAmount":{"currency":"USD","value":109},"transactionId":"2024040319028023400000010790843","transactionStatus":"SUCCESS","transactionTime":"2024-04-03T13:25:28Z","transactionType":"CONVERSION"},{"accountBalance":{"currency":"EUR","value":999999426504},"balanceType":"SAME_NAME_TOP_UP_BALANCE ","feeAmount":{"currency":"EUR","value":0},"foreignExchangeQuote":{"quotePrice":"1.08998","transferFromCurrency":"EUR","transferToCurrency":"USD"},"fundMoveDetail":{"beneficiaryAccountNo":"212021301100048033438600071840","beneficiaryAccountType":"SAME_NAME_TOPUP_BALANCE","beneficiaryBankCountry":"","description":"Conversion-EUR -> USD","payerAccountNo":"212011301100034016711970071978","payerAccountType":"SAME_NAME_TOPUP_BALANCE"},"originalTransactionAmount":{"currency":"EUR","value":100},"transactionAmount":{"currency":"EUR","value":-100},"transactionId":"2024040319028023400000010790843","transactionStatus":"SUCCESS","transactionTime":"2024-04-03T13:25:28Z","transactionType":"CONVERSION"}],"totalCount":18,"totalPageNumber":2}

    }


    /**
     * 创建收款人并绑定收款人账号后，集成商可调用此接口查询某万里汇账号绑定的所有收款人。
     */
    @Test
    public void inquiryBeneficiaryList(){
        String content = "";
        JSONObject jsonObject = new JSONObject();
//        jsonObject.put("customerId","2120220018087007");
        jsonObject.put("customerId","2120220021443809");
        jsonObject.put("pageSize",50);
        jsonObject.put("pageNumber",1);
        content = JSONObject.toJSONString(jsonObject);

        String httpMethod = "POST";
//        没有子账号的主账号
//        String clientId = "3J5Y8Y382Y3K3105035";
//        主账号有子账号
        String clientId = "3J5Y8X6S2Y7X0Z04334";
        String uriWithQueryString = "/amsin/api/v1/business/account/inquiryBeneficiaryList";
        String connectedCustomerId = "";
        String result = Demo.result(content, httpMethod, uriWithQueryString, clientId,connectedCustomerId);
        System.out.println("result=" + result);

        //没有子账号的主账号


        //主账号有子账号
        //        result={"beneficiaries":[{"beneficiaryBankAccount":{"bankAccountName":"test123","bankAccountNo":"4352234524","bankBIC":"HSBCHKHHHKH","beneficiaryCountryCode":"HK","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+ldT/3dEg74IkPUT6wTMOh/Gm8NSj3pjRH08FGnxEMGZ0ecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"123","bankAccountNo":"1234567890","bankBIC":"HSBCHKHHHKH","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lWFJ28Qmfeq51imMIriUD+h7pjCZn0oyE7tgw1rRtiSDecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"asd1431","bankAccountNo":"21143124","bankBIC":"HSBCHKHHHKH","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+ldvGkgRCZUauaXU+VExwDABJOGPIbG4Wmm4ViylKRDjnecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"test123","bankAccountNo":"124123412351","bankBIC":"BOFAUS6SXXX","beneficiaryPhone":"","routingNumber":"026009593"},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+ldvGkgRCZUauaXU+VExwDAANbNehqsVhOe5GlKRxn1ejecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_PERSONAL_BANK_ACCOUNT","countryCode":"US","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountLocalName":"齊煥正","bankAccountNo":"345234523","bankLocalName":"安徽新安银行","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+ldvGkgRCZUauaXU+VExwDACV7jbyYuSy8UdEERpT4pllecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNY","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountLocalName":"asd","bankAccountNo":"12343565466546","bankLocalName":"安徽省农村信用社","beneficiaryPhone":"","routingNumber":"123443211234"},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+laUDffB7SRkkLZZFmGSVueDSEB0wHJmdXmkkHYsxjkAhecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"CN","currency":"CNY","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"rushitest87","bankAccountNo":"54645645","bankBIC":"CMBCHKHHXXX","beneficiaryAddress":"rushitet","beneficiaryCountryCode":"HK","beneficiaryPhone":""},"beneficiaryNick":"rushifreidly","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lbMu+rGROFNZ1mOAx5zBM4FiH1Nwy6vgaMUu1iLwUK+uecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountLocalName":"齊煥正","bankAccountNo":"345634561","bankLocalName":"安徽省农村信用社","beneficiaryPhone":"","routingNumber":""},"beneficiaryNick":"TEST1","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lZZ+pHgkq9VMVPcCZ+CoW+Xk1FBN8vICnS5liEdo5/qAecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNY","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountLocalName":"齊煥正","bankAccountNo":"324532452345","bankLocalName":"保定银行","beneficiaryPhone":"","routingNumber":""},"beneficiaryNick":"12","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lRk/lUKEfmdW5nGn/omHyfQRnZIoTzn04RUTga3R8JpqecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNY","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountLocalName":"teste","bankAccountNo":"1826456183","bankLocalName":"安徽新安银行","beneficiaryPhone":""},"beneficiaryNick":"GWHE","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+leS9VOLWoXCJxDNM+YbrxMzJ8sGUOdNYIjk/d8bkC2bHecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNY","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountLocalName":"齊煥正","bankAccountNo":"76787892192312","bankLocalName":"安徽省农村信用社","beneficiaryPhone":"","routingNumber":""},"beneficiaryNick":"企业账号","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lfjObLDhK1aPXa2muj+e6Q0HKCyxk/0pjSOvm26ODO+fecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNY","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountLocalName":"外贸","bankAccountNo":"1704427899578","bankLocalName":"保定银行","beneficiaryPhone":"","routingNumber":""},"beneficiaryNick":"自动化使用","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lRoXhqiupAEYLL4rDkb/7aFuejnuNzwXuw5ZVPmiPEplecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNY","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"sadfd","bankAccountNo":"43563456","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"收款人别名","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+laMZ92zPJBbzHDN3vFV9NZ0RKGVezVd+oHcKexd+P9QfecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"123123132123","bankBIC":"BKCHCNBJ","bankName":"BANK OF CHINA","beneficiaryPhone":""},"beneficiaryNick":"123","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+leN/MQ/rMGpe1i88/iIfNrD/HjnqN4kaNa59PnTETb/cecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"185873483","bankBIC":"BOJSCNBN","bankName":"BANK OF JIANGSU CO LTD","beneficiaryPhone":""},"beneficiaryNick":"备注","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lX+OT9LM2+5ja6UdGnpgMp7XCTO/GJ8SX7rxOkWy+SR0ecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"EUR","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"test","bankAccountNo":"765867585678","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"perole","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lTIfzWAUMwIP/aSFiKEaEX2w1sMrCOOdgFq3b6FSbKzNecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"1","bankAccountNo":"1111111111","bankBIC":"CITITWTX","bankName":"CITIBANK TAIWAN LIMITED","beneficiaryPhone":""},"beneficiaryNick":"1","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lQQRXPQ+GFseiEdt2YqTowrLjrNI6pt0mm5IP+uGBvr+ecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_PERSONAL_BANK_ACCOUNT","countryCode":"TW","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"11","bankAccountNo":"1111","bankBIC":"CHASUS33","bankName":"ICBC","beneficiaryPhone":""},"beneficiaryNick":"2","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lQQRXPQ+GFseiEdt2YqTowoNnTphDckJ10HP5h4yzyjRecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"CN","currency":"CNH","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"9999999999","bankBIC":"CHASUS33","bankName":"ICBS","beneficiaryPhone":""},"beneficiaryNick":"3","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lQQRXPQ+GFseiEdt2YqTowqi/v4NEVIiIXdeZ/PaB7TNecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNH","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"543634567045768","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"4","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lYg+21Tgtijnngj40UiQ6cRLtJeR268j2X4a62W/DHHEecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"1234345435654","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"4444","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lViP/a7Z/CxB43kFF1qrgd0A85+FYOIlZaThPv8Mf8zFecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"445674567","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"456","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lViP/a7Z/CxB43kFF1qrgd2yoZGauys7A5cRzHdykwItecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"ttsaea","bankAccountNo":"432523452345","bankBIC":"BOJSCNBN","bankName":"asdfad","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lfnD+K18uNx8P+4kmR0XXMsbqe/JpUkNhdkJ+kO79KiPecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"CN","currency":"CNH","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"ttesa","bankAccountNo":"4356345614","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lfnD+K18uNx8P+4kmR0XXMsSlloM3PZCoGFDPejl/kURecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountIBAN":"GB33BUKB20201555555555","bankAccountName":"yiyi","bankAccountNo":"55555555","bankBIC":"BUKBGB22XXX","bankName":"BARCLAYS BANK UK PLC","beneficiaryPhone":"","routingNumber":"202015"},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lfnD+K18uNx8P+4kmR0XXMt2Zv007AfQzqgPRrIn4b6decG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"GB","currency":"GBP","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"awewae","bankAccountNo":"21341243453425","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lZ3mQFDjYatKoz1O19IxbFB8AS3S4WB+z8G/owfQYc6secG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"test123","bankAccountNo":"32452345","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lZ3mQFDjYatKoz1O19IxbFAH81+jKTPwuWwpsFuM06mYecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"23452345","bankBIC":"HSBCHKHHHKH","bankName":"asdfasdf","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lZ3mQFDjYatKoz1O19IxbFDHhb5q3K7iKABopWm/hnoaecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"CNH","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountIBAN":"GB22BARC20265358516733","bankAccountName":"PCHAI Wun Ching","bankAccountNo":"58516738","bankBIC":"BARCGB22XXX","bankName":"BARCLAYS BANK PLC","beneficiaryPhone":"","routingNumber":"202653"},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lZ3mQFDjYatKoz1O19IxbFDN8jqvwbjxb9Y2tngwyM8fecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"GB","currency":"GBP","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"435634563463456","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lYPynhsWaG3SkIoChw9SLRW5/Ejc6v13tkBUfQmqKpL6ecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"54675676575467","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lYPynhsWaG3SkIoChw9SLRX/7MI6yd9H6XAnXn7LYrNzecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"121212","bankBIC":"HSBCHKHHHKH","bankName":"e32e32e32re233","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lfz4IwTzTevDrToPx/yVpGQMhvxHyJ+b0ONwoewgNxqsecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNH","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"23123123123123123123","bankBIC":"HSBCHKHHHKH","bankName":"ewqerwrewre","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lfz4IwTzTevDrToPx/yVpGSmhCHhD2qrudT5WfcEqGZ2ecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNH","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"45363456","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lfz4IwTzTevDrToPx/yVpGRX/++OcKIkVylFh25AVSHOecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"564745676","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lfz4IwTzTevDrToPx/yVpGRh7xAClcNwjH1rDMsC0XesecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"Autotest","bankAccountNo":"123456789","bankBIC":"AGBTTWTP","bankName":"AGRICULTURAL BANK OF TAIWAN","beneficiaryAddress":"test123","beneficiaryPhone":""},"beneficiaryNick":"440","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lU4+nBFq95ZnMgq8gYPBxRzRBimoPFV+uxoWFR7gybmqecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"TW","currency":"EUR","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"546453634564356","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lUj6MqJ/wW40mrNtlHcaAAZcXXte99nvCHWwxR55FBT1ecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountIBAN":"GB22BARC20265358516733","bankAccountName":"PCHAI Wun Ching","bankAccountNo":"58516122","bankBIC":"BARCGB22XXX","bankName":"BARCLAYS BANK PLC","beneficiaryPhone":"","routingNumber":"202653"},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lfy07oxt6OnZGwq25yO+kEaOKyS3OIdBztZ1V3enbtkFecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"GB","currency":"GBP","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"456745674567","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lfy07oxt6OnZGwq25yO+kEbqq8QZHDlj/wo7tb7zaNooecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"1212223132132312","bankBIC":"BOJSCNBN","bankName":"test-99","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lTjiFLbKA0m7Rf4sa7p8ZiuinqPGanGRGefcxlrqT8trecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNH","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"wew","bankAccountNo":"111232","bankBIC":"BKCHCNBJ","bankName":"BANK OF CHINA","beneficiaryPhone":""},"beneficiaryNick":"1","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+latkVD5R3hg6WrM5/xk2m0VirTYV/gAufgRdjCd1KgNSecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"CN","currency":"EUR","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"asdfafd","bankAccountNo":"123421341235","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lUIuBH1FDUN++bz9IXxDrM//NT7N5kR00I9kAEAWqo9jecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"aasdf","bankAccountNo":"1431234","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lUIuBH1FDUN++bz9IXxDrM9wGL7f7xdmhjzfzloL/we3ecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"a's'd'fa'f","bankAccountNo":"34523452345","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lUIuBH1FDUN++bz9IXxDrM/Zk8X4Ozhwr6Uy6GW75mfDecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"435234534252","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lUIuBH1FDUN++bz9IXxDrM/GBxeq/VQHNhiHBx6CgfY8ecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"asdsadf","bankAccountNo":"2345234523452345","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lUIuBH1FDUN++bz9IXxDrM+u/1UzRnvybIQq2h5YlrtqecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"asdfasdf","bankAccountNo":"3245234523452435","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lUIuBH1FDUN++bz9IXxDrM+UCO2BbALJQRBnxJYnV4tMecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"EUR","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"54634563546","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lUIuBH1FDUN++bz9IXxDrM+F12MNHlmyRYwuhTYrdCuFecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"3afdasdf","bankAccountNo":"123412341234","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lUIuBH1FDUN++bz9IXxDrM+FiB9G68bAAUTgYN5axbNOecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"132412421341","bankBIC":"HSBCHKHHHKH","bankName":"GKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lUIuBH1FDUN++bz9IXxDrM/hVuG/Zn1v1Cf3ttVBajhrecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"}],"currentPageNumber":1,"responseId":"21918b11171411684840073202832","result":{"resultCode":"SUCCESS","resultMessage":"success","resultStatus":"S"},"totalCount":79,"totalPageNumber":2}
//        result={"beneficiaries":[{"beneficiaryBankAccount":{"bankAccountLocalName":"回归测试","bankAccountNo":"1223344555666","bankLocalName":"安徽新安银行","beneficiaryPhone":"","routingNumber":""},"beneficiaryNick":"111222","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lZ3mQFDjYatKoz1O19IxbFC0E1Aq/nqkxQkEPWdNzxlgecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNY","status":"SUCCESS"}],"currentPageNumber":1,"responseId":"21b84f85171411736400474222836","result":{"resultCode":"SUCCESS","resultMessage":"success","resultStatus":"S"},"totalCount":1,"totalPageNumber":1}


    }


    /**
     * 转账代发前，集成商需要创建收款人。创建收款人时，集成商可调用此接口获取收款人模板。
     */
    @Test
    public void inquiryBeneficiaryTemplate(){
        String content = "";
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("currency","USD");
        jsonObject.put("countryCode","US");
        content = JSONObject.toJSONString(jsonObject);

        String httpMethod = "POST";
//        没有子账号的主账号
        String clientId = "3J5Y8Y382Y3K3105035";
//        主账号有子账号
//        String clientId = "3J5Y8X6S2Y7X0Z04334";
        String uriWithQueryString = "/amsin/api/v1/business/account/inquiryBeneficiaryTemplate";
        String connectedCustomerId = "";
        String result = Demo.result(content, httpMethod, uriWithQueryString, clientId,connectedCustomerId);
        System.out.println("result=" + result);

        //没有子账号的主账号
//        result={"cardTemplateData":[{"fieldDescription":"Beneficiary account name (in local language) ","fieldName":"bankAccountLocalName","required":"Y","restriction":{"restrictionMsg":"Please fill out this required field","restrictionRegex":"^[A-Za-z0-9/() .,-?:'+*§©°¿ĢģĪīĶķĹŚśŪūΆΌΎΏΪЬьюя€\\u0021-\\u0027\\u003b-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a0-\\u00a3\\u00c0-\\u00d6\\u00d8-\\u00ff\\u0100-\\u0107\\u010a-\\u0113\\u0116-\\u011f\\u012e-\\u0133\\u013a-\\u013e\\u0141-\\u0148\\u0150-\\u0159\\u015e-\\u0165\\u016e-\\u0173\\u0178-\\u017e\\u0218-\\u021b\\u0388-\\u038a\\u0391-\\u03ce\\u0410-\\u042a\\u042e-\\u044a]{0,70}$","restrictionType":"PATTERN_RESTRICTION"}},{"fieldDescription":"SWIFT / BIC","fieldName":"bankBIC","required":"Y","restriction":{"restrictionMsg":"The SWIFT code you entered is incorrect, please re-enter","restrictionRegex":"^[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}$","restrictionType":"PATTERN_RESTRICTION"}},{"fieldDescription":"IBAN","fieldName":"bankAccountIBAN","required":"Y","restriction":{"restrictionMsg":"The IBAN you entered is incorrect, please re-enter","restrictionRegex":"^DE[0-9]{2}[0-9]{4}[0-9]{4}[0-9]{10}$","restrictionType":"PATTERN_RESTRICTION"}}],"crossBorderCardTemplateData":[{"fieldDescription":"Beneficiary account name (in local language) ","fieldName":"bankAccountLocalName","required":"Y","restriction":{"restrictionMsg":"Please fill out this required field","restrictionRegex":"^[A-Za-z0-9/() .,-?:'+*§©°¿ĢģĪīĶķĹŚśŪūΆΌΎΏΪЬьюя€\\u0021-\\u0027\\u003b-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a0-\\u00a3\\u00c0-\\u00d6\\u00d8-\\u00ff\\u0100-\\u0107\\u010a-\\u0113\\u0116-\\u011f\\u012e-\\u0133\\u013a-\\u013e\\u0141-\\u0148\\u0150-\\u0159\\u015e-\\u0165\\u016e-\\u0173\\u0178-\\u017e\\u0218-\\u021b\\u0388-\\u038a\\u0391-\\u03ce\\u0410-\\u042a\\u042e-\\u044a]{0,70}$","restrictionType":"PATTERN_RESTRICTION"}},{"fieldDescription":"SWIFT / BIC","fieldName":"bankBIC","required":"Y","restriction":{"restrictionMsg":"The SWIFT code you entered is incorrect, please re-enter","restrictionRegex":"^[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}$","restrictionType":"PATTERN_RESTRICTION"}},{"fieldDescription":"IBAN","fieldName":"bankAccountIBAN","required":"Y","restriction":{"restrictionMsg":"The IBAN you entered is incorrect, please re-enter","restrictionRegex":"^DE[0-9]{2}[0-9]{4}[0-9]{4}[0-9]{10}$","restrictionType":"PATTERN_RESTRICTION"}}],"responseId":"21b1d247171412268389643532835","result":{"resultCode":"SUCCESS","resultMessage":"success","resultStatus":"S"}}


        //美国要求
//        result={"cardTemplateData":[{"fieldDescription":"Beneficiary account name","fieldName":"bankAccountName","required":"Y","restriction":{"restrictionMsg":"The characters exceed the length limit of 70, only english uppercase and lowercase letters, numbers and special characters of ? - : ( ) ' . and spaces are supported","restrictionRegex":"^[A-Za-z0-9/() .,\\-?:'+]{0,70}$","restrictionType":"PATTERN_RESTRICTION"}},{"fieldDescription":"Bank code","fieldName":"routingNumber","required":"Y","restriction":{"restrictionMsg":"The format you entered is incorrect","restrictionRegex":"^\\d{6}$|^\\d{9}$","restrictionType":"PATTERN_RESTRICTION"}},{"fieldDescription":"SWIFT / BIC","fieldName":"bankBIC","required":"Y","restriction":{"restrictionMsg":"The SWIFT code you entered is incorrect, please re-enter","restrictionRegex":"^[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}$","restrictionType":"PATTERN_RESTRICTION"}},{"fieldDescription":"Beneficiary account number","fieldName":"bankAccountNo","required":"Y","restriction":{"restrictionMsg":"The characters exceed the length limit of 34, only english uppercase letters and numbers are supported","restrictionRegex":"^[A-Z0-9]{0,17}$","restrictionType":"PATTERN_RESTRICTION"}}],"crossBorderCardTemplateData":[{"fieldDescription":"Beneficiary account name","fieldName":"bankAccountName","required":"Y","restriction":{"restrictionMsg":"The characters exceed the length limit of 70, only english uppercase and lowercase letters, numbers and special characters of ? - : ( ) ' . and spaces are supported","restrictionRegex":"^[A-Za-z0-9/() .,\\-?:'+]{0,70}$","restrictionType":"PATTERN_RESTRICTION"}},{"fieldDescription":"SWIFT / BIC","fieldName":"bankBIC","required":"Y","restriction":{"restrictionMsg":"The SWIFT code you entered is incorrect, please re-enter","restrictionRegex":"^[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}$","restrictionType":"PATTERN_RESTRICTION"}},{"fieldDescription":"Beneficiary account number","fieldName":"bankAccountNo","required":"Y","restriction":{"restrictionMsg":"The characters exceed the length limit of 34, only english uppercase letters and numbers are supported","restrictionRegex":"^[A-Z0-9]{0,34}$","restrictionType":"PATTERN_RESTRICTION"}}],"localCardTemplateData":[{"fieldDescription":"Beneficiary account name","fieldName":"bankAccountName","required":"Y","restriction":{"restrictionMsg":"The characters exceed the length limit of 70, only english uppercase and lowercase letters, numbers and special characters of ? - : ( ) ' . and spaces are supported","restrictionRegex":"^[A-Za-z0-9/() .,\\-?:'+]{0,70}$","restrictionType":"PATTERN_RESTRICTION"}},{"fieldDescription":"Bank code","fieldName":"routingNumber","required":"Y","restriction":{"restrictionMsg":"The format you entered is incorrect","restrictionRegex":"^\\d{6}$|^\\d{9}$","restrictionType":"PATTERN_RESTRICTION"}},{"fieldDescription":"Beneficiary account number","fieldName":"bankAccountNo","required":"Y","restriction":{"restrictionMsg":"The characters exceed the length limit of 34, only english uppercase letters and numbers are supported","restrictionRegex":"^[A-Z0-9]{0,17}$","restrictionType":"PATTERN_RESTRICTION"}}],"responseId":"21b84f85171436130723748662836","result":{"resultCode":"SUCCESS","resultMessage":"success","resultStatus":"S"}}


        //中国要求
//        result={"cardTemplateData":[{"fieldDescription":"Beneficiary address","fieldName":"beneficiaryAddress","required":"Y","restriction":{"restrictionMsg":"The characters exceed the length limit of 70","restrictionRegex":"^[A-Za-z0-9/() .,\\-?:'+]{0,105}$","restrictionType":"PATTERN_RESTRICTION"}},{"fieldDescription":"Beneficiary account name","fieldName":"bankAccountName","required":"Y","restriction":{"restrictionMsg":"The characters exceed the length limit of 70, only english uppercase and lowercase letters, numbers and special characters of ? - : ( ) ' . and spaces are supported","restrictionRegex":"^[A-Za-z0-9/() .,\\-?:'+]{0,70}$","restrictionType":"PATTERN_RESTRICTION"}},{"fieldDescription":"SWIFT / BIC","fieldName":"bankBIC","required":"Y","restriction":{"restrictionMsg":"The SWIFT code you entered is incorrect, please re-enter","restrictionRegex":"^[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9][A-Z0-9]{3,3}$","restrictionType":"PATTERN_RESTRICTION"}},{"fieldDescription":"Beneficiary account number","fieldName":"bankAccountNo","required":"Y","restriction":{"restrictionMsg":"The characters exceed the length limit of 34, only english uppercase letters and numbers are supported","restrictionRegex":"^[A-Z0-9]{0,34}$","restrictionType":"PATTERN_RESTRICTION"}}],"crossBorderCardTemplateData":[{"fieldDescription":"Beneficiary address","fieldName":"beneficiaryAddress","required":"Y","restriction":{"restrictionMsg":"The characters exceed the length limit of 70","restrictionRegex":"^[A-Za-z0-9/() .,\\-?:'+]{0,105}$","restrictionType":"PATTERN_RESTRICTION"}},{"fieldDescription":"Beneficiary account name","fieldName":"bankAccountName","required":"Y","restriction":{"restrictionMsg":"The characters exceed the length limit of 70, only english uppercase and lowercase letters, numbers and special characters of ? - : ( ) ' . and spaces are supported","restrictionRegex":"^[A-Za-z0-9/() .,\\-?:'+]{0,70}$","restrictionType":"PATTERN_RESTRICTION"}},{"fieldDescription":"SWIFT / BIC","fieldName":"bankBIC","required":"Y","restriction":{"restrictionMsg":"The SWIFT code you entered is incorrect, please re-enter","restrictionRegex":"^[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9][A-Z0-9]{3,3}$","restrictionType":"PATTERN_RESTRICTION"}},{"fieldDescription":"Beneficiary account number","fieldName":"bankAccountNo","required":"Y","restriction":{"restrictionMsg":"The characters exceed the length limit of 34, only english uppercase letters and numbers are supported","restrictionRegex":"^[A-Z0-9]{0,34}$","restrictionType":"PATTERN_RESTRICTION"}}],"responseId":"21b84f85171496584740863362836","result":{"resultCode":"SUCCESS","resultMessage":"success","resultStatus":"S"}}


    }



    /**
     * 在调用createPayout API进行转账之前，调用本接口获取转账相关信息。
     */
    @Test
    public void consultPayout(){
        String content = "";
        JSONObject jsonObject = new JSONObject();

        String guid = RandomUtil.getGUID();
        jsonObject.put("transferRequestId", guid);
        System.out.println("guid = "+ guid);
        JSONObject transferFromDetail = new JSONObject();
        JSONObject transferFromAmount = new JSONObject();
        transferFromAmount.put("currency","EUR");
        transferFromAmount.put("value",6000);
        transferFromDetail.put("transferFromAmount",transferFromAmount);
        jsonObject.put("transferFromDetail",transferFromDetail);

        JSONObject transferToDetail = new JSONObject();
        JSONObject transferToMethod = new JSONObject();

        transferToMethod.put("paymentMethodType","BANK_ACCOUNT_DETAIL");

        JSONObject paymentMethodMetaData = new JSONObject();

//        //正则
//        String regStr = "^[A-Za-z0-9/() .,\\-?:'+]{0,70}$";
//        //2.创建一个模式对象  (一个正则表达式对象)
//        Pattern pattern = Pattern.compile(regStr);
//
//        //3.获取对应的匹配器
//        Matcher matcher = pattern.matcher("Amazon.com Services LLC");
//        matcher.matches();
//
//        //正则
//        regStr = "^\\d{6}$|^\\d{9}$";
//        //2.创建一个模式对象  (一个正则表达式对象)
//        pattern = Pattern.compile(regStr);
//
//        //3.获取对应的匹配器
//        matcher = pattern.matcher("121000248");
//        matcher.matches();
//
//        //正则
//        regStr = "^[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}$";
//        //2.创建一个模式对象  (一个正则表达式对象)
//        pattern = Pattern.compile(regStr);
//
//        //3.获取对应的匹配器
//        matcher = pattern.matcher("WFBIUS6SXXX");
//        matcher.matches();
//
//        //正则
//        regStr = "^[A-Z0-9]{0,17}$";
//        //2.创建一个模式对象  (一个正则表达式对象)
//        pattern = Pattern.compile(regStr);
//
//        //3.获取对应的匹配器
//        matcher = pattern.matcher("43530001477785130");
//        matcher.matches();
//
//        paymentMethodMetaData.put("bankAccountName","Amazon.com Services LLC");
//        paymentMethodMetaData.put("routingNumber","121000248");
//        paymentMethodMetaData.put("bankBIC","WFBIUS6SXXX");
//        paymentMethodMetaData.put("bankAccountNo","43530001477785130");
//        paymentMethodMetaData.put("beneficiaryType","THIRD_PARTY_COMPANY_BANK_ACCOUNT");
//        paymentMethodMetaData.put("bankCountryCode","US");

//        //CYH
//        paymentMethodMetaData.put("beneficiaryAddress","福建省");
//        paymentMethodMetaData.put("bankAccountName","招商银行");
//        paymentMethodMetaData.put("bankBIC","308584001354");
//        paymentMethodMetaData.put("bankAccountNo","75592568431060405300");

//        CNY
        paymentMethodMetaData.put("bankAccountLocalName","深圳麦德通商务代理有限公司");
        paymentMethodMetaData.put("bankLocalName","招商银行");
        paymentMethodMetaData.put("bankAccountNo","755959972910101");
        paymentMethodMetaData.put("beneficiaryType","THIRD_PARTY_COMPANY_BANK_ACCOUNT");
        paymentMethodMetaData.put("bankCountryCode","CN");
//        beneficiaryType=THIRD_PARTY_COMPANY_BANK_ACCOUNT(企业银行卡) 该routingNumber（银行支行联行号）字段必填
        paymentMethodMetaData.put("routingNumber","308584001338");
        //TODO 需要注意每个国家的简称提前设置

        transferToMethod.put("paymentMethodMetaData",paymentMethodMetaData);

        transferToDetail.put("transferToMethod",transferToMethod);

        JSONObject transferToAmount = new JSONObject();
//        transferToAmount.put("currency","USD");
        transferToAmount.put("currency","CNY");
//        transferToAmount.put("value",4000);

        transferToDetail.put("transferToAmount",transferToAmount);
        jsonObject.put("transferToDetail",transferToDetail);
        jsonObject.put("businessSceneCode","THIRD_PARTY_PAYOUT");
        content = JSONObject.toJSONString(jsonObject);

        String httpMethod = "POST";
//        没有子账号的主账号
//        String clientId = "3J5Y8Y382Y3K3105035";
//        主账号有子账号
        String clientId = "3J5Y8X6S2Y7X0Z04334";
//        String clientId = "3J5Y92382Y4L6E00180";
        String uriWithQueryString = "/amsin/api/v1/business/fund/consultPayout";
        String connectedCustomerId = "";
//        String connectedCustomerId = "2120220021443809";
        String result = Demo.result(content, httpMethod, uriWithQueryString, clientId,connectedCustomerId);
        System.out.println("consultPayoutresult=" + result);
        System.out.println("content=" + content);

        createTransfer();
        createPayout(result);
        //欧-美
//               result={"result":{"resultCode":"SUCCESS","resultMessage":"success","resultStatus":"S"},"transferFromDetail":{"transferFromAmount":{"currency":"EUR","value":500},"transferFromMethod":{"customerId":"2120120007146804","paymentMethodType":"BALANCE"}},"transferToDetail":{"feeAmount":{"currency":"EUR","value":1},"transferQuote":{"quoteCurrencyPair":"EUR/USD","quoteExpiryTime":"2024-04-29T07:26:51Z","quoteId":"20240429C50030030025377802","quotePrice":"1.08998","quoteStartTime":"2024-04-29T07:26:21Z"},"transferToAmount":{"currency":"USD","value":544},"transferToMethod":{"paymentMethodId":"2024042919027700120032509517297","paymentMethodType":"BANK_ACCOUNT_DETAIL"}}}

        //英-美
//        result={"result":{"resultCode":"SUCCESS","resultMessage":"success","resultStatus":"S"},"transferFromDetail":{"transferFromAmount":{"currency":"GBP","value":500},"transferFromMethod":{"customerId":"2120120007146804","paymentMethodType":"BALANCE"}},"transferToDetail":{"feeAmount":{"currency":"GBP","value":1},"transferQuote":{"quoteCurrencyPair":"GBP/USD","quoteExpiryTime":"2024-04-29T07:51:20Z","quoteId":"20240429C50030480024662195","quotePrice":"1.25115","quoteStartTime":"2024-04-29T07:50:50Z"},"transferToAmount":{"currency":"USD","value":624},"transferToMethod":{"paymentMethodId":"2024042919027700120032509517297","paymentMethodType":"BANK_ACCOUNT_DETAIL"}}}

    }


    /**
     * 用本接口向万里汇外部账户进行转账（比如转账到银行卡或支付宝账户）。
     */
    @Test
    public void createPayout(String result1111){
        String content = "";
        JSONObject jsonObject = new JSONObject();
        String guid = RandomUtil.getGUID();
        jsonObject.put("transferRequestId", guid);
        System.out.println("guid = "+ guid);

        JSONObject transferFromDetail = new JSONObject();
        JSONObject transferFromAmount = new JSONObject();
        transferFromAmount.put("currency","EUR");
        transferFromAmount.put("value",6000);
        transferFromDetail.put("transferFromAmount",transferFromAmount);
        jsonObject.put("transferFromDetail",transferFromDetail);

        JSONObject transferToDetail = new JSONObject();
        JSONObject transferToMethod = new JSONObject();

        transferToMethod.put("paymentMethodType","BANK_ACCOUNT_DETAIL");

        JSONObject paymentMethodMetaData = new JSONObject();

//        //正则
//        String regStr = "^[A-Za-z0-9/() .,\\-?:'+]{0,70}$";
//        //2.创建一个模式对象  (一个正则表达式对象)
//        Pattern pattern = Pattern.compile(regStr);
//
//        //3.获取对应的匹配器
//        Matcher matcher = pattern.matcher("Amazon.com Services LLC");
//        matcher.matches();
//
//        //正则
//        regStr = "^\\d{6}$|^\\d{9}$";
//        //2.创建一个模式对象  (一个正则表达式对象)
//        pattern = Pattern.compile(regStr);
//
//        //3.获取对应的匹配器
//        matcher = pattern.matcher("121000248");
//        matcher.matches();
//
//        //正则
//        regStr = "^[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}$";
//        //2.创建一个模式对象  (一个正则表达式对象)
//        pattern = Pattern.compile(regStr);
//
//        //3.获取对应的匹配器
//        matcher = pattern.matcher("WFBIUS6SXXX");
//        matcher.matches();
//
//        //正则
//        regStr = "^[A-Z0-9]{0,17}$";
//        //2.创建一个模式对象  (一个正则表达式对象)
//        pattern = Pattern.compile(regStr);
//
//        //3.获取对应的匹配器
//        matcher = pattern.matcher("43530001477785130");
//        matcher.matches();
//
//        paymentMethodMetaData.put("bankAccountName","Amazon.com Services LLC");
//        paymentMethodMetaData.put("routingNumber","121000248");
//        paymentMethodMetaData.put("bankBIC","WFBIUS6SXXX");
//        paymentMethodMetaData.put("bankAccountNo","43530001477785130");
//        paymentMethodMetaData.put("beneficiaryType","THIRD_PARTY_COMPANY_BANK_ACCOUNT");
//        paymentMethodMetaData.put("bankCountryCode","US");

        //        CNY
        paymentMethodMetaData.put("bankAccountLocalName","深圳麦德通商务代理有限公司");
        paymentMethodMetaData.put("bankLocalName","招商银行");
        paymentMethodMetaData.put("bankAccountNo","755959972910101");
        paymentMethodMetaData.put("beneficiaryType","THIRD_PARTY_COMPANY_BANK_ACCOUNT");
        paymentMethodMetaData.put("bankCountryCode","CN");
//        beneficiaryType=THIRD_PARTY_COMPANY_BANK_ACCOUNT(企业银行卡) 该routingNumber（银行支行联行号）字段必填
        paymentMethodMetaData.put("routingNumber","308584001338");
        //TODO 需要注意每个国家的简称提前设置

        transferToMethod.put("paymentMethodMetaData",paymentMethodMetaData);

        transferToDetail.put("transferToMethod",transferToMethod);

        JSONObject transferToAmount = new JSONObject();
//        transferToAmount.put("currency","USD");//除了日本货币以外传过去100等于1美金 固定最低是50美金 currency 为 USD时，100 cents = $1.00
//        transferToAmount.put("currency","JPY");//日本货币是1:1
        transferToAmount.put("currency","CNY");

        transferToDetail.put("transferToAmount",transferToAmount);

        //获取汇率
        JSONObject jsonObject1 = JSONObject.parseObject(result1111);
        JSONObject transferToDetailJo = JSONObject.parseObject(jsonObject1.get("transferToDetail").toString());
        if (transferToDetailJo.get("transferQuote") != null){
            JSONObject transferQuoteJo = JSONObject.parseObject(transferToDetailJo.get("transferQuote").toString());
            JSONObject transferQuote = new JSONObject();
            transferQuote.put("quoteId",transferQuoteJo.get("quoteId"));

            transferToDetail.put("transferQuote",transferQuote);
        }

        transferToDetail.put("purposeCode","GDS");
        //用于接收转账通知的地址，万里汇会使用此地址将转账结果通过notifyTransfer接口发送给集成商。
        transferToDetail.put("transferNotifyUrl","https://admintest.mini-ease.com/api/outer/wfStore/test4");

        jsonObject.put("transferToDetail",transferToDetail);
        jsonObject.put("businessSceneCode","THIRD_PARTY_PAYOUT");

        content = JSONObject.toJSONString(jsonObject);

        String httpMethod = "POST";
//        没有子账号的主账号
//        String clientId = "3J5Y8Y382Y3K3105035";
//        主账号有子账号
        String clientId = "3J5Y8X6S2Y7X0Z04334";
//        String clientId = "3J5Y92382Y4L6E00180";
        String uriWithQueryString = "/amsin/api/v1/business/fund/createPayout";
        String connectedCustomerId = "";
//        String connectedCustomerId = "2120220021443809";
        String result = Demo.result(content, httpMethod, uriWithQueryString, clientId,connectedCustomerId);
        System.out.println("createPayoutresult=" + result);
        System.out.println("content=" + content);



    }


    /**
     * 调用本接口查询外部转账结果。
     */
    @Test
    public void inquiryPayout(){
        String content = "";
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("transferRequestId","fce89bb0-e289-46be-956c-7a5a6acaac9c");
        content = JSONObject.toJSONString(jsonObject);

        String httpMethod = "POST";
//        没有子账号的主账号
        String clientId = "3J5Y8Y382Y3K3105035";
//        主账号有子账号
//        String clientId = "3J5Y8X6S2Y7X0Z04334";
        String uriWithQueryString = "/amsin/api/v1/business/fund/inquiryPayout";
        String connectedCustomerId = "";
        String result = Demo.result(content, httpMethod, uriWithQueryString, clientId,connectedCustomerId);
        System.out.println("result=" + result);

        //没有子账号的主账号


        //主账号有子账号
        //        result={"beneficiaries":[{"beneficiaryBankAccount":{"bankAccountName":"test123","bankAccountNo":"4352234524","bankBIC":"HSBCHKHHHKH","beneficiaryCountryCode":"HK","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+ldT/3dEg74IkPUT6wTMOh/Gm8NSj3pjRH08FGnxEMGZ0ecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"123","bankAccountNo":"1234567890","bankBIC":"HSBCHKHHHKH","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lWFJ28Qmfeq51imMIriUD+h7pjCZn0oyE7tgw1rRtiSDecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"asd1431","bankAccountNo":"21143124","bankBIC":"HSBCHKHHHKH","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+ldvGkgRCZUauaXU+VExwDABJOGPIbG4Wmm4ViylKRDjnecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"test123","bankAccountNo":"124123412351","bankBIC":"BOFAUS6SXXX","beneficiaryPhone":"","routingNumber":"026009593"},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+ldvGkgRCZUauaXU+VExwDAANbNehqsVhOe5GlKRxn1ejecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_PERSONAL_BANK_ACCOUNT","countryCode":"US","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountLocalName":"齊煥正","bankAccountNo":"345234523","bankLocalName":"安徽新安银行","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+ldvGkgRCZUauaXU+VExwDACV7jbyYuSy8UdEERpT4pllecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNY","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountLocalName":"asd","bankAccountNo":"12343565466546","bankLocalName":"安徽省农村信用社","beneficiaryPhone":"","routingNumber":"123443211234"},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+laUDffB7SRkkLZZFmGSVueDSEB0wHJmdXmkkHYsxjkAhecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"CN","currency":"CNY","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"rushitest87","bankAccountNo":"54645645","bankBIC":"CMBCHKHHXXX","beneficiaryAddress":"rushitet","beneficiaryCountryCode":"HK","beneficiaryPhone":""},"beneficiaryNick":"rushifreidly","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lbMu+rGROFNZ1mOAx5zBM4FiH1Nwy6vgaMUu1iLwUK+uecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountLocalName":"齊煥正","bankAccountNo":"345634561","bankLocalName":"安徽省农村信用社","beneficiaryPhone":"","routingNumber":""},"beneficiaryNick":"TEST1","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lZZ+pHgkq9VMVPcCZ+CoW+Xk1FBN8vICnS5liEdo5/qAecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNY","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountLocalName":"齊煥正","bankAccountNo":"324532452345","bankLocalName":"保定银行","beneficiaryPhone":"","routingNumber":""},"beneficiaryNick":"12","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lRk/lUKEfmdW5nGn/omHyfQRnZIoTzn04RUTga3R8JpqecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNY","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountLocalName":"teste","bankAccountNo":"1826456183","bankLocalName":"安徽新安银行","beneficiaryPhone":""},"beneficiaryNick":"GWHE","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+leS9VOLWoXCJxDNM+YbrxMzJ8sGUOdNYIjk/d8bkC2bHecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNY","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountLocalName":"齊煥正","bankAccountNo":"76787892192312","bankLocalName":"安徽省农村信用社","beneficiaryPhone":"","routingNumber":""},"beneficiaryNick":"企业账号","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lfjObLDhK1aPXa2muj+e6Q0HKCyxk/0pjSOvm26ODO+fecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNY","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountLocalName":"外贸","bankAccountNo":"1704427899578","bankLocalName":"保定银行","beneficiaryPhone":"","routingNumber":""},"beneficiaryNick":"自动化使用","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lRoXhqiupAEYLL4rDkb/7aFuejnuNzwXuw5ZVPmiPEplecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNY","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"sadfd","bankAccountNo":"43563456","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"收款人别名","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+laMZ92zPJBbzHDN3vFV9NZ0RKGVezVd+oHcKexd+P9QfecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"123123132123","bankBIC":"BKCHCNBJ","bankName":"BANK OF CHINA","beneficiaryPhone":""},"beneficiaryNick":"123","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+leN/MQ/rMGpe1i88/iIfNrD/HjnqN4kaNa59PnTETb/cecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"185873483","bankBIC":"BOJSCNBN","bankName":"BANK OF JIANGSU CO LTD","beneficiaryPhone":""},"beneficiaryNick":"备注","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lX+OT9LM2+5ja6UdGnpgMp7XCTO/GJ8SX7rxOkWy+SR0ecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"EUR","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"test","bankAccountNo":"765867585678","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"perole","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lTIfzWAUMwIP/aSFiKEaEX2w1sMrCOOdgFq3b6FSbKzNecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"1","bankAccountNo":"1111111111","bankBIC":"CITITWTX","bankName":"CITIBANK TAIWAN LIMITED","beneficiaryPhone":""},"beneficiaryNick":"1","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lQQRXPQ+GFseiEdt2YqTowrLjrNI6pt0mm5IP+uGBvr+ecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_PERSONAL_BANK_ACCOUNT","countryCode":"TW","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"11","bankAccountNo":"1111","bankBIC":"CHASUS33","bankName":"ICBC","beneficiaryPhone":""},"beneficiaryNick":"2","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lQQRXPQ+GFseiEdt2YqTowoNnTphDckJ10HP5h4yzyjRecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"CN","currency":"CNH","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"9999999999","bankBIC":"CHASUS33","bankName":"ICBS","beneficiaryPhone":""},"beneficiaryNick":"3","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lQQRXPQ+GFseiEdt2YqTowqi/v4NEVIiIXdeZ/PaB7TNecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNH","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"543634567045768","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"4","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lYg+21Tgtijnngj40UiQ6cRLtJeR268j2X4a62W/DHHEecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"1234345435654","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"4444","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lViP/a7Z/CxB43kFF1qrgd0A85+FYOIlZaThPv8Mf8zFecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"445674567","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"456","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lViP/a7Z/CxB43kFF1qrgd2yoZGauys7A5cRzHdykwItecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"ttsaea","bankAccountNo":"432523452345","bankBIC":"BOJSCNBN","bankName":"asdfad","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lfnD+K18uNx8P+4kmR0XXMsbqe/JpUkNhdkJ+kO79KiPecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"CN","currency":"CNH","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"ttesa","bankAccountNo":"4356345614","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lfnD+K18uNx8P+4kmR0XXMsSlloM3PZCoGFDPejl/kURecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountIBAN":"GB33BUKB20201555555555","bankAccountName":"yiyi","bankAccountNo":"55555555","bankBIC":"BUKBGB22XXX","bankName":"BARCLAYS BANK UK PLC","beneficiaryPhone":"","routingNumber":"202015"},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lfnD+K18uNx8P+4kmR0XXMt2Zv007AfQzqgPRrIn4b6decG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"GB","currency":"GBP","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"awewae","bankAccountNo":"21341243453425","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lZ3mQFDjYatKoz1O19IxbFB8AS3S4WB+z8G/owfQYc6secG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"test123","bankAccountNo":"32452345","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lZ3mQFDjYatKoz1O19IxbFAH81+jKTPwuWwpsFuM06mYecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"23452345","bankBIC":"HSBCHKHHHKH","bankName":"asdfasdf","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lZ3mQFDjYatKoz1O19IxbFDHhb5q3K7iKABopWm/hnoaecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"CNH","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountIBAN":"GB22BARC20265358516733","bankAccountName":"PCHAI Wun Ching","bankAccountNo":"58516738","bankBIC":"BARCGB22XXX","bankName":"BARCLAYS BANK PLC","beneficiaryPhone":"","routingNumber":"202653"},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lZ3mQFDjYatKoz1O19IxbFDN8jqvwbjxb9Y2tngwyM8fecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"GB","currency":"GBP","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"435634563463456","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lYPynhsWaG3SkIoChw9SLRW5/Ejc6v13tkBUfQmqKpL6ecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"54675676575467","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lYPynhsWaG3SkIoChw9SLRX/7MI6yd9H6XAnXn7LYrNzecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"121212","bankBIC":"HSBCHKHHHKH","bankName":"e32e32e32re233","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lfz4IwTzTevDrToPx/yVpGQMhvxHyJ+b0ONwoewgNxqsecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNH","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"23123123123123123123","bankBIC":"HSBCHKHHHKH","bankName":"ewqerwrewre","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lfz4IwTzTevDrToPx/yVpGSmhCHhD2qrudT5WfcEqGZ2ecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNH","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"45363456","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lfz4IwTzTevDrToPx/yVpGRX/++OcKIkVylFh25AVSHOecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"564745676","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lfz4IwTzTevDrToPx/yVpGRh7xAClcNwjH1rDMsC0XesecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"Autotest","bankAccountNo":"123456789","bankBIC":"AGBTTWTP","bankName":"AGRICULTURAL BANK OF TAIWAN","beneficiaryAddress":"test123","beneficiaryPhone":""},"beneficiaryNick":"440","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lU4+nBFq95ZnMgq8gYPBxRzRBimoPFV+uxoWFR7gybmqecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"TW","currency":"EUR","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"546453634564356","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lUj6MqJ/wW40mrNtlHcaAAZcXXte99nvCHWwxR55FBT1ecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountIBAN":"GB22BARC20265358516733","bankAccountName":"PCHAI Wun Ching","bankAccountNo":"58516122","bankBIC":"BARCGB22XXX","bankName":"BARCLAYS BANK PLC","beneficiaryPhone":"","routingNumber":"202653"},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lfy07oxt6OnZGwq25yO+kEaOKyS3OIdBztZ1V3enbtkFecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"GB","currency":"GBP","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"456745674567","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lfy07oxt6OnZGwq25yO+kEbqq8QZHDlj/wo7tb7zaNooecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"1212223132132312","bankBIC":"BOJSCNBN","bankName":"test-99","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lTjiFLbKA0m7Rf4sa7p8ZiuinqPGanGRGefcxlrqT8trecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNH","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"wew","bankAccountNo":"111232","bankBIC":"BKCHCNBJ","bankName":"BANK OF CHINA","beneficiaryPhone":""},"beneficiaryNick":"1","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+latkVD5R3hg6WrM5/xk2m0VirTYV/gAufgRdjCd1KgNSecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"CN","currency":"EUR","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"asdfafd","bankAccountNo":"123421341235","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lUIuBH1FDUN++bz9IXxDrM//NT7N5kR00I9kAEAWqo9jecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"aasdf","bankAccountNo":"1431234","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lUIuBH1FDUN++bz9IXxDrM9wGL7f7xdmhjzfzloL/we3ecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"a's'd'fa'f","bankAccountNo":"34523452345","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lUIuBH1FDUN++bz9IXxDrM/Zk8X4Ozhwr6Uy6GW75mfDecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"435234534252","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lUIuBH1FDUN++bz9IXxDrM/GBxeq/VQHNhiHBx6CgfY8ecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"asdsadf","bankAccountNo":"2345234523452345","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lUIuBH1FDUN++bz9IXxDrM+u/1UzRnvybIQq2h5YlrtqecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"asdfasdf","bankAccountNo":"3245234523452435","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lUIuBH1FDUN++bz9IXxDrM+UCO2BbALJQRBnxJYnV4tMecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"EUR","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"54634563546","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lUIuBH1FDUN++bz9IXxDrM+F12MNHlmyRYwuhTYrdCuFecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"3afdasdf","bankAccountNo":"123412341234","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lUIuBH1FDUN++bz9IXxDrM+FiB9G68bAAUTgYN5axbNOecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"132412421341","bankBIC":"HSBCHKHHHKH","bankName":"GKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lUIuBH1FDUN++bz9IXxDrM/hVuG/Zn1v1Cf3ttVBajhrecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"}],"currentPageNumber":1,"responseId":"21918b11171411684840073202832","result":{"resultCode":"SUCCESS","resultMessage":"success","resultStatus":"S"},"totalCount":79,"totalPageNumber":2}
//        result={"beneficiaries":[{"beneficiaryBankAccount":{"bankAccountLocalName":"回归测试","bankAccountNo":"1223344555666","bankLocalName":"安徽新安银行","beneficiaryPhone":"","routingNumber":""},"beneficiaryNick":"111222","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lZ3mQFDjYatKoz1O19IxbFC0E1Aq/nqkxQkEPWdNzxlgecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNY","status":"SUCCESS"}],"currentPageNumber":1,"responseId":"21b84f85171411736400474222836","result":{"resultCode":"SUCCESS","resultMessage":"success","resultStatus":"S"},"totalCount":1,"totalPageNumber":1}


    }


    /**
     * 调用本接口进行资金的转账。资金会转入到另一个万里汇账户，即资金在万里汇账户之间流通。
     *
     * 转账步骤为异步。调用本接口后，WF仅返回本API的调用结果，而在notifyTransfer接口中返回转账结果。集成商也可以自行调用 inquiryTransfer接口查询转账结果
     */
    @Test
    public void createTransfer(){
        String content = "";
        JSONObject jsonObject = new JSONObject();
        String guid = RandomUtil.getGUID();
        jsonObject.put("transferRequestId", guid);
        System.out.println("guid = "+ guid);
        jsonObject.put("businessSceneCode","MULTI_ACCOUNT_TRANSFER");


        JSONObject transferFromDetail = new JSONObject();
        JSONObject transferFromAmount = new JSONObject();
        transferFromAmount.put("currency","GBP");
        transferFromAmount.put("value",6000);
        transferFromDetail.put("transferFromAmount",transferFromAmount);

        JSONObject transferFromMethod = new JSONObject();
        transferFromMethod.put("paymentMethodType","BALANCE");
        transferFromMethod.put("customerId","2120220018087007");
        transferFromDetail.put("transferFromMethod",transferFromMethod);
        jsonObject.put("transferFromDetail",transferFromDetail);

        JSONObject transferToDetail = new JSONObject();
        JSONObject transferToMethod = new JSONObject();

        transferToMethod.put("paymentMethodType","BALANCE");
        transferToMethod.put("customerId","2120220021443809");


        transferToDetail.put("transferToMethod",transferToMethod);

        JSONObject transferToAmount = new JSONObject();
        transferToAmount.put("currency","GBP");
//        transferToAmount.put("currency","CNH");

        transferToDetail.put("transferToAmount",transferToAmount);


        transferToDetail.put("purposeCode","GDS");
        //必须为true 这样的结汇额度才会转移
        transferToDetail.put("needMigrateMaterial",true);
        //用于接收转账通知的地址，万里汇会使用此地址将转账结果通过notifyTransfer接口发送给集成商。
        transferToDetail.put("transferNotifyUrl","https://admintest.mini-ease.com/api/outer/wfStore/test3");

        jsonObject.put("transferToDetail",transferToDetail);

        content = JSONObject.toJSONString(jsonObject);

        String httpMethod = "POST";
//        没有子账号的主账号
//        String clientId = "3J5Y8Y382Y3K3105035";
//        主账号有子账号
        String clientId = "3J5Y8X6S2Y7X0Z04334";
        String uriWithQueryString = "/amsin/api/v1/business/fund/createTransfer";
        String connectedCustomerId = "";
        String result = Demo.result(content, httpMethod, uriWithQueryString, clientId,connectedCustomerId);
        System.out.println("createTransferresult=" + result);
        System.out.println("content=" + content);


        //状态返回成功  resultCode = SUCCESS  就不需要回调事件
    }

    /**
     * 调用本接口查询内部转账结果。
     */
    @Test
    public void inquiryTransfer(){
        String content = "";
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("transferRequestId","882f9949-4b67-4acd-8e46-928bb2a3f67e");
        content = JSONObject.toJSONString(jsonObject);

        String httpMethod = "POST";
//        没有子账号的主账号
        String clientId = "5YBY722ZHDD405465";
//        String clientId = "3J5Y8Y382Y3K3105035";
//        主账号有子账号
//        String clientId = "3J5Y8X6S2Y7X0Z04334";
        String uriWithQueryString = "/amsin/api/v1/business/fund/inquiryTransfer";
        String connectedCustomerId = "";
        String result = WanliUtils.result(content, httpMethod, uriWithQueryString, clientId,connectedCustomerId);
        System.out.println("result=" + result);

        //没有子账号的主账号


        //主账号有子账号
        //        result={"beneficiaries":[{"beneficiaryBankAccount":{"bankAccountName":"test123","bankAccountNo":"4352234524","bankBIC":"HSBCHKHHHKH","beneficiaryCountryCode":"HK","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+ldT/3dEg74IkPUT6wTMOh/Gm8NSj3pjRH08FGnxEMGZ0ecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"123","bankAccountNo":"1234567890","bankBIC":"HSBCHKHHHKH","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lWFJ28Qmfeq51imMIriUD+h7pjCZn0oyE7tgw1rRtiSDecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"asd1431","bankAccountNo":"21143124","bankBIC":"HSBCHKHHHKH","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+ldvGkgRCZUauaXU+VExwDABJOGPIbG4Wmm4ViylKRDjnecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"test123","bankAccountNo":"124123412351","bankBIC":"BOFAUS6SXXX","beneficiaryPhone":"","routingNumber":"026009593"},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+ldvGkgRCZUauaXU+VExwDAANbNehqsVhOe5GlKRxn1ejecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_PERSONAL_BANK_ACCOUNT","countryCode":"US","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountLocalName":"齊煥正","bankAccountNo":"345234523","bankLocalName":"安徽新安银行","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+ldvGkgRCZUauaXU+VExwDACV7jbyYuSy8UdEERpT4pllecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNY","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountLocalName":"asd","bankAccountNo":"12343565466546","bankLocalName":"安徽省农村信用社","beneficiaryPhone":"","routingNumber":"123443211234"},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+laUDffB7SRkkLZZFmGSVueDSEB0wHJmdXmkkHYsxjkAhecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"CN","currency":"CNY","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"rushitest87","bankAccountNo":"54645645","bankBIC":"CMBCHKHHXXX","beneficiaryAddress":"rushitet","beneficiaryCountryCode":"HK","beneficiaryPhone":""},"beneficiaryNick":"rushifreidly","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lbMu+rGROFNZ1mOAx5zBM4FiH1Nwy6vgaMUu1iLwUK+uecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountLocalName":"齊煥正","bankAccountNo":"345634561","bankLocalName":"安徽省农村信用社","beneficiaryPhone":"","routingNumber":""},"beneficiaryNick":"TEST1","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lZZ+pHgkq9VMVPcCZ+CoW+Xk1FBN8vICnS5liEdo5/qAecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNY","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountLocalName":"齊煥正","bankAccountNo":"324532452345","bankLocalName":"保定银行","beneficiaryPhone":"","routingNumber":""},"beneficiaryNick":"12","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lRk/lUKEfmdW5nGn/omHyfQRnZIoTzn04RUTga3R8JpqecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNY","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountLocalName":"teste","bankAccountNo":"1826456183","bankLocalName":"安徽新安银行","beneficiaryPhone":""},"beneficiaryNick":"GWHE","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+leS9VOLWoXCJxDNM+YbrxMzJ8sGUOdNYIjk/d8bkC2bHecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNY","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountLocalName":"齊煥正","bankAccountNo":"76787892192312","bankLocalName":"安徽省农村信用社","beneficiaryPhone":"","routingNumber":""},"beneficiaryNick":"企业账号","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lfjObLDhK1aPXa2muj+e6Q0HKCyxk/0pjSOvm26ODO+fecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNY","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountLocalName":"外贸","bankAccountNo":"1704427899578","bankLocalName":"保定银行","beneficiaryPhone":"","routingNumber":""},"beneficiaryNick":"自动化使用","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lRoXhqiupAEYLL4rDkb/7aFuejnuNzwXuw5ZVPmiPEplecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNY","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"sadfd","bankAccountNo":"43563456","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"收款人别名","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+laMZ92zPJBbzHDN3vFV9NZ0RKGVezVd+oHcKexd+P9QfecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"123123132123","bankBIC":"BKCHCNBJ","bankName":"BANK OF CHINA","beneficiaryPhone":""},"beneficiaryNick":"123","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+leN/MQ/rMGpe1i88/iIfNrD/HjnqN4kaNa59PnTETb/cecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"185873483","bankBIC":"BOJSCNBN","bankName":"BANK OF JIANGSU CO LTD","beneficiaryPhone":""},"beneficiaryNick":"备注","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lX+OT9LM2+5ja6UdGnpgMp7XCTO/GJ8SX7rxOkWy+SR0ecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"EUR","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"test","bankAccountNo":"765867585678","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"perole","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lTIfzWAUMwIP/aSFiKEaEX2w1sMrCOOdgFq3b6FSbKzNecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"1","bankAccountNo":"1111111111","bankBIC":"CITITWTX","bankName":"CITIBANK TAIWAN LIMITED","beneficiaryPhone":""},"beneficiaryNick":"1","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lQQRXPQ+GFseiEdt2YqTowrLjrNI6pt0mm5IP+uGBvr+ecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_PERSONAL_BANK_ACCOUNT","countryCode":"TW","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"11","bankAccountNo":"1111","bankBIC":"CHASUS33","bankName":"ICBC","beneficiaryPhone":""},"beneficiaryNick":"2","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lQQRXPQ+GFseiEdt2YqTowoNnTphDckJ10HP5h4yzyjRecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"CN","currency":"CNH","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"9999999999","bankBIC":"CHASUS33","bankName":"ICBS","beneficiaryPhone":""},"beneficiaryNick":"3","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lQQRXPQ+GFseiEdt2YqTowqi/v4NEVIiIXdeZ/PaB7TNecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNH","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"543634567045768","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"4","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lYg+21Tgtijnngj40UiQ6cRLtJeR268j2X4a62W/DHHEecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"1234345435654","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"4444","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lViP/a7Z/CxB43kFF1qrgd0A85+FYOIlZaThPv8Mf8zFecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"445674567","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"456","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lViP/a7Z/CxB43kFF1qrgd2yoZGauys7A5cRzHdykwItecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"ttsaea","bankAccountNo":"432523452345","bankBIC":"BOJSCNBN","bankName":"asdfad","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lfnD+K18uNx8P+4kmR0XXMsbqe/JpUkNhdkJ+kO79KiPecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"CN","currency":"CNH","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"ttesa","bankAccountNo":"4356345614","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lfnD+K18uNx8P+4kmR0XXMsSlloM3PZCoGFDPejl/kURecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountIBAN":"GB33BUKB20201555555555","bankAccountName":"yiyi","bankAccountNo":"55555555","bankBIC":"BUKBGB22XXX","bankName":"BARCLAYS BANK UK PLC","beneficiaryPhone":"","routingNumber":"202015"},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lfnD+K18uNx8P+4kmR0XXMt2Zv007AfQzqgPRrIn4b6decG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"GB","currency":"GBP","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"awewae","bankAccountNo":"21341243453425","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lZ3mQFDjYatKoz1O19IxbFB8AS3S4WB+z8G/owfQYc6secG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"test123","bankAccountNo":"32452345","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lZ3mQFDjYatKoz1O19IxbFAH81+jKTPwuWwpsFuM06mYecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"23452345","bankBIC":"HSBCHKHHHKH","bankName":"asdfasdf","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lZ3mQFDjYatKoz1O19IxbFDHhb5q3K7iKABopWm/hnoaecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"CNH","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountIBAN":"GB22BARC20265358516733","bankAccountName":"PCHAI Wun Ching","bankAccountNo":"58516738","bankBIC":"BARCGB22XXX","bankName":"BARCLAYS BANK PLC","beneficiaryPhone":"","routingNumber":"202653"},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lZ3mQFDjYatKoz1O19IxbFDN8jqvwbjxb9Y2tngwyM8fecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"GB","currency":"GBP","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"435634563463456","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lYPynhsWaG3SkIoChw9SLRW5/Ejc6v13tkBUfQmqKpL6ecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"54675676575467","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lYPynhsWaG3SkIoChw9SLRX/7MI6yd9H6XAnXn7LYrNzecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"121212","bankBIC":"HSBCHKHHHKH","bankName":"e32e32e32re233","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lfz4IwTzTevDrToPx/yVpGQMhvxHyJ+b0ONwoewgNxqsecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNH","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"23123123123123123123","bankBIC":"HSBCHKHHHKH","bankName":"ewqerwrewre","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lfz4IwTzTevDrToPx/yVpGSmhCHhD2qrudT5WfcEqGZ2ecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNH","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"45363456","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lfz4IwTzTevDrToPx/yVpGRX/++OcKIkVylFh25AVSHOecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"564745676","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lfz4IwTzTevDrToPx/yVpGRh7xAClcNwjH1rDMsC0XesecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"Autotest","bankAccountNo":"123456789","bankBIC":"AGBTTWTP","bankName":"AGRICULTURAL BANK OF TAIWAN","beneficiaryAddress":"test123","beneficiaryPhone":""},"beneficiaryNick":"440","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lU4+nBFq95ZnMgq8gYPBxRzRBimoPFV+uxoWFR7gybmqecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"TW","currency":"EUR","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"546453634564356","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lUj6MqJ/wW40mrNtlHcaAAZcXXte99nvCHWwxR55FBT1ecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountIBAN":"GB22BARC20265358516733","bankAccountName":"PCHAI Wun Ching","bankAccountNo":"58516122","bankBIC":"BARCGB22XXX","bankName":"BARCLAYS BANK PLC","beneficiaryPhone":"","routingNumber":"202653"},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lfy07oxt6OnZGwq25yO+kEaOKyS3OIdBztZ1V3enbtkFecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"GB","currency":"GBP","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"456745674567","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lfy07oxt6OnZGwq25yO+kEbqq8QZHDlj/wo7tb7zaNooecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"1212223132132312","bankBIC":"BOJSCNBN","bankName":"test-99","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lTjiFLbKA0m7Rf4sa7p8ZiuinqPGanGRGefcxlrqT8trecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNH","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"wew","bankAccountNo":"111232","bankBIC":"BKCHCNBJ","bankName":"BANK OF CHINA","beneficiaryPhone":""},"beneficiaryNick":"1","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+latkVD5R3hg6WrM5/xk2m0VirTYV/gAufgRdjCd1KgNSecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"CN","currency":"EUR","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"asdfafd","bankAccountNo":"123421341235","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lUIuBH1FDUN++bz9IXxDrM//NT7N5kR00I9kAEAWqo9jecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"aasdf","bankAccountNo":"1431234","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lUIuBH1FDUN++bz9IXxDrM9wGL7f7xdmhjzfzloL/we3ecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"a's'd'fa'f","bankAccountNo":"34523452345","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lUIuBH1FDUN++bz9IXxDrM/Zk8X4Ozhwr6Uy6GW75mfDecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"435234534252","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lUIuBH1FDUN++bz9IXxDrM/GBxeq/VQHNhiHBx6CgfY8ecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"asdsadf","bankAccountNo":"2345234523452345","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lUIuBH1FDUN++bz9IXxDrM+u/1UzRnvybIQq2h5YlrtqecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"asdfasdf","bankAccountNo":"3245234523452435","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lUIuBH1FDUN++bz9IXxDrM+UCO2BbALJQRBnxJYnV4tMecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"EUR","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"54634563546","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lUIuBH1FDUN++bz9IXxDrM+F12MNHlmyRYwuhTYrdCuFecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"3afdasdf","bankAccountNo":"123412341234","bankBIC":"HSBCHKHHHKH","bankName":"HONGKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lUIuBH1FDUN++bz9IXxDrM+FiB9G68bAAUTgYN5axbNOecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"THIRD_PARTY_COMPANY_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"},{"beneficiaryBankAccount":{"bankAccountName":"PCHAI Wun Ching","bankAccountNo":"132412421341","bankBIC":"HSBCHKHHHKH","bankName":"GKONG AND SHANGHAI BANKING CORPORATION LIMITED, THE","beneficiaryPhone":""},"beneficiaryNick":"","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lUIuBH1FDUN++bz9IXxDrM/hVuG/Zn1v1Cf3ttVBajhrecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"HK","currency":"USD","status":"SUCCESS"}],"currentPageNumber":1,"responseId":"21918b11171411684840073202832","result":{"resultCode":"SUCCESS","resultMessage":"success","resultStatus":"S"},"totalCount":79,"totalPageNumber":2}
//        result={"beneficiaries":[{"beneficiaryBankAccount":{"bankAccountLocalName":"回归测试","bankAccountNo":"1223344555666","bankLocalName":"安徽新安银行","beneficiaryPhone":"","routingNumber":""},"beneficiaryNick":"111222","beneficiaryToken":"ALIPAYUg0xMLOr0g6HMxxMtbQ+lZ3mQFDjYatKoz1O19IxbFC0E1Aq/nqkxQkEPWdNzxlgecG+d5jFylCRsGrtK8j0YA==","beneficiaryType":"PERSONAL_BANK_ACCOUNT","countryCode":"CN","currency":"CNY","status":"SUCCESS"}],"currentPageNumber":1,"responseId":"21b84f85171411736400474222836","result":{"resultCode":"SUCCESS","resultMessage":"success","resultStatus":"S"},"totalCount":1,"totalPageNumber":1}


    }

}
